Skip to content

Commit

Permalink
add pytest cov rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Griffiths committed Nov 2, 2023
1 parent cf531a4 commit e21a286
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ jobs:
pip install .[all]
- name: Test with pytest
run: |
pip install pytest pytest-cov
coverage run -m pytest
- name: Report test coverage
run: |
coverage report -m
pytest tests/ --cov=src
- name: Test tutorial notebooks with pytest
run: |
pytest --nbmake tutorials/
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ source = ["/src/"]
addopts = [
'--cov-fail-under=100',
'--cov-branch',
'--cov-report=html',
'--cov-report=term-missing',
'--junitxml=report.xml',
# Ignore notebooks which depend on external data for E2E tests
'--ignore=tutorials/First_Data_Fetching.ipynb',
'--ignore=tutorials/Mean_Squared_Error.ipynb',
Expand Down

0 comments on commit e21a286

Please sign in to comment.