Skip to content

Commit

Permalink
add test-backend-case-distinction to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed Jun 6, 2024
1 parent 96a01f4 commit 1e62f14
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
environment-file: environment.yaml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
use-mamba: true

- name: Install JAX
if: ${{ matrix.backend == 'jax' }}
Expand Down Expand Up @@ -59,6 +60,22 @@ jobs:
conda config --show
printenv | sort
- name: Run tests
- name: Run JAX Tests
if: ${{ matrix.backend == 'jax' }}
run: |
python -m pytest tests/ -n auto -v -m "not (numpy or tensorflow or torch)"
- name: Run NumPy Tests
if: ${{ matrix.backend == 'numpy' }}
run: |
python -m pytest tests/ -n auto -v -m "not (jax or tensorflow or torch)"
- name: Run TensorFlow Tests
if: ${{ matrix.backend == 'tensorflow' }}
run: |
python -m pytest tests/ -n auto -v -m "not (jax or numpy or torch)"
- name: Run PyTorch Tests
if: ${{ matrix.backend == 'torch' }}
run: |
python -m pytest tests/ -n auto -v
python -m pytest tests/ -n auto -v -m "not (jax or numpy or tensorflow)"

0 comments on commit 1e62f14

Please sign in to comment.