Skip to content

Commit

Permalink
scores#79: Add E2E tests to workflow and ignore notebooks with nc deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Griffiths committed Nov 1, 2023
1 parent 8014f63 commit 911ab5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -38,3 +38,6 @@ jobs:
- name: Report test coverage
run: |
coverage report -m
- name: Test tutorial notebooks with pytest
run: |
coverage run -m pytest --nbmake tutorials/
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,13 @@ ignore_missing_imports = true
source = ["/src/"]

[tool.pytest.ini_options]
addopts = [
'--cov-fail-under=98',
'--cov-report=html',
'--cov-report=term-missing',
'--junitxml=report.xml'
]
# Ignore notebooks which depend on external data for E2E tests
addopts = "--cov-fail-under=98 --cov-report=html --cov-report=term-missing --junitxml=report.xml --ignore='tutorials/First - Data Fetching.ipynb' --ignore='tutorials/Mean Squared Error.ipynb' --ignore='tutorials/Root Mean Squared Error.ipynb' --ignore='tutorials/Weighting Results.ipynb' --ignore='tutorials/Mean Absolute Error.ipynb'"

[tool.pylint.master]
# https://github.com/PyCQA/pylint/issues/4081#issuecomment-778242554
init-hook = 'import sys; sys.setrecursionlimit(3 * sys.getrecursionlimit())'
ignore-paths = [
ignore-paths = [
'docs/'
]

Expand Down

0 comments on commit 911ab5d

Please sign in to comment.