Skip to content

Commit

Permalink
Upgrade upload-artifact@v2 to upload-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Nov 12, 2024
1 parent e01b46c commit 38ee0bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-0.4.x.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,26 @@ jobs:
echo "Python ${{ matrix.python_version }}: $failure_rate %" > results-${{ matrix.python_version }}.txt
continue-on-error: true
- name: Upload pytest test TXT results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-report-${{ matrix.python_version }}
path: results-${{ matrix.python_version }}.txt
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Upload pytest test RAW results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python_version }}
path: junit/
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Upload pytest HTML test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results-html-${{ matrix.python_version }}
path: htmlcov/
- name: Upload pytest JSON test json results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results-json-${{ matrix.python_version }}
path: .report.json
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
echo "Python 3.9: ${{ needs.test.outputs.failure_rate_python_3_9 }}%" >> "test_pass_rates.txt"
echo "Python 3.10: ${{ needs.test.outputs.failure_rate_python_3_10 }}%" >> "test_pass_rates.txt"
- name: Upload test pass rates
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-pass-rates
path: test_pass_rates.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ jobs:
echo "::set-output name=failure_rate::$failure_rate"
- name: Upload pytest test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: junit/
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

- name: Upload pytest test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results-html
path: htmlcov/
Expand Down

0 comments on commit 38ee0bb

Please sign in to comment.