From 5d26b7875970ac9d8b70bfb75047eef4afe9a27c Mon Sep 17 00:00:00 2001 From: Joran Angevaare Date: Wed, 17 Aug 2022 12:53:50 +0200 Subject: [PATCH] update test --- .github/workflows/pytest.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0b95754..8749c84 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -37,18 +37,22 @@ jobs: run: | # Requirements for running the notebooks as a pytest pip install cython - pip install nbmake pytest-xdist pytest coverage coveralls + pip install nbmake pytest-xdist pytest coverage coveralls pytest-cov pytest-notebook # Several optional packages that are imported in the notebooks pip install git+https://github.com/XENON1T/laidbax python setup.py develop - name: Test package if: matrix.test == 'pytest' - run: coverage run --source=wimprates -m pytest -v --nbmake -n=auto notebooks/*.ipynb --durations 0 + run: + pytest --cov wimprates -v --nbmake notebooks_fixed/*.ipynb --durations 0 --nb-coverage +# coverage run --source=wimprates -m pytest -v --nbmake -n=auto notebooks/*.ipynb --durations 0 - name: Coveralls env: NUMBA_DISABLE_JIT: 1 if: matrix.test == 'coveralls' - run: coverage run --source=wimprates -m pytest -v --nbmake -n=auto notebooks/*.ipynb --durations 0 + run: + pytest --cov wimprates -v --nbmake notebooks_fixed/*.ipynb --durations 0 --nb-coverage +# coverage run --source=wimprates -m pytest -v --nbmake -n=auto notebooks/*.ipynb --durations 0 - name: Coveralls env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}