Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joran Angevaare committed Aug 17, 2022
1 parent dd80e7a commit 5d26b78
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 5d26b78

Please sign in to comment.