Skip to content

Commit

Permalink
Update artifact actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Sep 6, 2024
1 parent 61d21da commit 3d32b92
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ jobs:
env:
COVERAGE_FILE: .coverage.${{ steps.matrix-id.outputs.id }}
- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: .coverage.*
if-no-files-found: ignore
include-hidden-files: true
# TODO FIXME: This is only using the last run
overwrite: true

coverage:
name: Combine & check coverage.
Expand All @@ -74,7 +76,7 @@ jobs:
run: |
pip install --upgrade "coverage[toml]>=5.1" diff-cover
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: coverage-data

Expand All @@ -90,10 +92,12 @@ jobs:
diff-cover coverage.xml --markdown-report=coverage.md --fail-under=100 || (cat coverage.md >> $GITHUB_STEP_SUMMARY && exit 1)
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov
# TODO FIXME: This is only using the last run
overwrite: true
if: ${{ failure() }}

build-wheel:
Expand Down

0 comments on commit 3d32b92

Please sign in to comment.