From 7e8a99fe7d2a59db20b7e3d9ed4798473203738b Mon Sep 17 00:00:00 2001 From: Clif Bratcher Date: Wed, 1 May 2024 00:08:27 -0400 Subject: [PATCH] Publish code coverage again by fixing matrix reference --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5f8a45..5394f51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/codecov-action@v4.0.1 - 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 }}