From 93dc61a5c6237637c00407facfcffbe396f90e3f Mon Sep 17 00:00:00 2001 From: Renato Durrer Date: Thu, 4 Apr 2024 09:27:01 +0200 Subject: [PATCH] Add pytest actions --- .github/workflows/pytest.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pytest.yml 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