Skip to content

Commit

Permalink
🚚 Update Code Coverage Action
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Jan 10, 2025
1 parent e59d4ef commit 79ce843
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
concurrency:
group: test-coverage-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true

strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]

env:
OS: ${{ matrix.os }}
PYTHON_VERSION: ${{ matrix.python-version }}
Expand Down Expand Up @@ -53,6 +55,7 @@ jobs:
--cov-report=term \
--cov-report=html:coverage_html \
--junitxml=pytest.xml \
-o junit_family=legacy \
-v
- name: Upload coverage reports to Codecov
Expand All @@ -68,6 +71,12 @@ jobs:
fail_ci_if_error: true
verbose: true

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage html report
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit 79ce843

Please sign in to comment.