Skip to content

Commit

Permalink
Merge branch 'test-notebooks' of github.com:chrisjonesBSU/flowerMD in…
Browse files Browse the repository at this point in the history
…to test-notebooks
  • Loading branch information
chrisjonesBSU committed Mar 29, 2024
2 parents 6263beb + 1b7ebd8 commit cd1602a
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [macOS-latest, ubuntu-latest]
python-version: ['3.10', '3.11']

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

Expand All @@ -35,6 +35,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment-dev.yml
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: 4.9.2-4
use-mamba: true
Expand All @@ -47,12 +48,31 @@ jobs:
shell: bash -l {0}
run: python -m pytest -rs -v --cov=./ --cov-report=xml

- name: Run pytest on tutorials
shell: bash -l {0}
run: python -m pytest -rs -v --nbmake tutorials/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

test-tutorials:
if: contains(github.event.comment.body, 'run-test-tutorials')
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Build environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment-dev.yml
miniforge-variant: Mambaforge
miniforge-version: 4.9.2-4
use-mamba: true

- name: Install package
shell: bash -l {0}
run: pip install .

- name: Run pytest on tutorials
shell: bash -l {0}
run: python -m pytest -rs -v --nbmake tutorials/

0 comments on commit cd1602a

Please sign in to comment.