Skip to content

Commit

Permalink
Publish code coverage again by fixing matrix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
inno committed May 1, 2024
1 parent bb3d748 commit 7e8a99f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
python -m pip install --upgrade pip
pip install pytest pytest-cov
- name: Test with pytest
run: pytest tests --cov --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
run: pytest tests --cov --doctest-modules --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.runs-on }}-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.runs-on }}-${{ matrix.python-version }}.xml
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml
# always publish test results even with test failures
if: ${{ always() }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.12'
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 7e8a99f

Please sign in to comment.