From b42b65d9963f4556c80c1ce465a7e2f05cf2b561 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 12 Mar 2024 10:50:38 +0000 Subject: [PATCH] Upgrade GitHub Actions artifact actions Thanks to Mark Walker for the required changes to the coverage workflow. --- .github/workflows/main.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 38360e1..a670ec3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,10 +43,10 @@ jobs: run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .) - name: Upload coverage data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: coverage-data - path: '.coverage.*' + name: coverage-data-${{ matrix.python-version }} + path: '${{ github.workspace }}/.coverage.*' coverage: name: Coverage @@ -63,9 +63,11 @@ jobs: run: python -m pip install --upgrade coverage[toml] - name: Download data - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: coverage-data + path: ${{ github.workspace }} + pattern: coverage-data-* + merge-multiple: true - name: Combine coverage and fail if it's <100% run: | @@ -75,7 +77,7 @@ jobs: - name: Upload HTML report if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html-report path: htmlcov