-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish code coverage again by fixing matrix reference
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |