Skip to content

Commit

Permalink
Update code_coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry57 authored Oct 27, 2024
1 parent 8646faa commit f0d3ea8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ jobs:
run: |
pip install .
pip install pytest coverage codecov
- name: Generate coverage report for specific functions
- name: Generate coverage report
run: |
coverage run -m pytest -m "not slow" pytest/test_sim_data_scalar.py pytest/test_sim_data_func.py pytest/test_func_ge.py pytest/test_grid_func_ge.py
coverage run -m pytest
coverage xml -o coverage.xml
- name: Filter coverage report
run: |
python filter_coverage.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
files: ./coverage_filtered.xml
verbose: true

0 comments on commit f0d3ea8

Please sign in to comment.