Skip to content

Commit

Permalink
feat: 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 7a208ec commit 85e98f0
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 3 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: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ addopts = [
'--cov-fail-under=100',
'--cov-report=html',
'--cov-report=term-missing',
'--junitxml=report.xml'
'--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',
'--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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 85e98f0

Please sign in to comment.