Skip to content

Commit

Permalink
isolate tests with optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Dec 13, 2023
1 parent 98b0940 commit 5cda614
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@ jobs:
pip install .[dev]
- name: Test with pytest
run: |
pytest
pytest --ignore-glob='*torch*' --ignore-glob='*numpy*'
# TODO: move this to a separate parallel job matrix
- name: Install torch and numpy
run: |
pip install torch numpy
- name: run tests for optional numpy and pytorch support
run: |
pytest -k "numpy or torch"

0 comments on commit 5cda614

Please sign in to comment.