Skip to content

Commit

Permalink
Enhance the Code Coverage Workflows (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer authored Nov 27, 2024
1 parent ad7579f commit 0ff4d22
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ jobs:
run: |
invoke integration
invoke benchmark-dtypes
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12
name: Upload integration codecov report
uses: codecov/codecov-action@v4
with:
flags: integration
file: './integration_cov.xml'
file: ${{ github.workspace }}/integration_cov.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
python -m pip install invoke .[test]
- name: Run unit tests
run: invoke unit
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12
name: Upload unit codecov report
uses: codecov/codecov-action@v4
with:
flags: unit
file: './unit_cov.xml'
file: ${{ github.workspace }}/unit_cov.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
*_cov.xml

# Translations
*.mo
Expand Down
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
coverage:
precision: 2
range: "90...100"
status:
project:
default:
target: auto
threshold: 1.0
patch:
default:
target: auto
threshold: 1.0

0 comments on commit 0ff4d22

Please sign in to comment.