Skip to content

Commit

Permalink
add nbmake and test for notebooks, test on multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Mar 28, 2024
1 parent 9f0cda5 commit 547c110
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ on:

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']

runs-on: ${{ matrix.os }}

steps:
- name: Check out repository
Expand All @@ -39,7 +45,7 @@ jobs:

- name: Run pytest with coverage report
shell: bash -l {0}
run: python -m pytest -rs -v --cov=./ --cov-report=xml
run: python -m pytest -rs -v --cov=./ --cov-report=xml --nbmake "../../tutorials/"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- py3Dmol
- pytest
- pytest-cov
- nbmake
- python >=3.10, <3.12
- fresnel >=0.13.5
- cmeutils >=1.1.1
Expand Down

0 comments on commit 547c110

Please sign in to comment.