Skip to content

Commit

Permalink
Changed flags for code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
famura committed Mar 21, 2024
1 parent 1e0e73a commit f08e7b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: codecov/codecov-action@v4-beta
with:
file: ./coverage.xml
flags: unittests
flags: unittests-all-cpu
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ jobs:
run: |
pyright sbi
- name: Run the fast tests
- name: Run the fast tests with coverage
run: |
pytest -m "not slow and not gpu" --exitfirst
pip install pytest-cov
pytest -m "not slow and not gpu" tests/ --cov=sbi --cov-report=xml --exitfirst
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
with:
file: ./coverage.xml
flags: unittests-fast-cpu
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
env:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f08e7b5

Please sign in to comment.