Skip to content

Commit

Permalink
add coverage statistics to tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed Jun 14, 2024
1 parent de98e80 commit 560233a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ jobs:
- name: Run JAX Tests
if: ${{ matrix.backend == 'jax' }}
run: |
python -m pytest tests/ -v -m "not (numpy or tensorflow or torch)"
python -m pytest tests/ -v -m "not (numpy or tensorflow or torch)" --cov bayesflow ${{ env.CODECOV_ATS_TESTS }}
- name: Run NumPy Tests
if: ${{ matrix.backend == 'numpy' }}
run: |
python -m pytest tests/ -v -m "not (jax or tensorflow or torch)"
python -m pytest tests/ -v -m "not (jax or tensorflow or torch)" --cov bayesflow ${{ env.CODECOV_ATS_TESTS }}
- name: Run TensorFlow Tests
if: ${{ matrix.backend == 'tensorflow' }}
run: |
python -m pytest tests/ -v -m "not (jax or numpy or torch)"
python -m pytest tests/ -v -m "not (jax or numpy or torch)" --cov bayesflow ${{ env.CODECOV_ATS_TESTS }}
- name: Run PyTorch Tests
if: ${{ matrix.backend == 'torch' }}
run: |
python -m pytest tests/ -v -m "not (jax or numpy or tensorflow)"
python -m pytest tests/ -v -m "not (jax or numpy or tensorflow)" --cov bayesflow ${{ env.CODECOV_ATS_TESTS }}
- name: Upload Coverage Reports to CodeCov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 560233a

Please sign in to comment.