Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 committed Nov 15, 2021
1 parent 6aa42cb commit 316d0e9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ name: Python package

on:
push:
branches: [ main, dev ]
branches: [ main ]
pull_request:
branches: [ main, dev ]
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
env:
MODULE_NAME: cca_zoo
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
Expand Down Expand Up @@ -44,5 +46,6 @@ jobs:
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
- name: Test examples
run: pytest test/test_examples.py
- name: Run doctests
run: |
pytest --doctest-modules --ignore=$MODULE_NAME/tests $MODULE_NAME

0 comments on commit 316d0e9

Please sign in to comment.