diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..1491a616 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,15 @@ +steps: +- uses: actions/checkout@v4 +- name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10.14 +- name: Install dependencies + run: | + curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" + bash Miniforge3-$(uname)-$(uname -m).sh + conda env create -f environment-dev.yml +- name: Test with pytest + run: | + conda install pytest-cov + pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html