Skip to content

Commit

Permalink
Only run doctests on scheduled CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Aug 31, 2021
1 parent 43fb0bc commit a1e3910
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,15 @@ jobs:
run: echo DANDI_DEVEL=1 >> "$GITHUB_ENV"

- name: Run all tests
if: matrix.mode != 'dandi-api'
if: matrix.mode != 'dandi-api' && github.event_name != 'schedule'
run: |
python -m pytest -s -v --cov=dandi --cov-report=xml dandi
- name: Run all tests (including doctests)
if: matrix.mode != 'dandi-api' && github.event_name == 'schedule'
run: |
python -m pytest -s -v --cov=dandi --cov-report=xml --doctest-modules dandi
- name: Run Dandi API tests only
if: matrix.mode == 'dandi-api'
run: |
Expand Down

0 comments on commit a1e3910

Please sign in to comment.