Skip to content

Commit

Permalink
Update actions/upload-artifact and download-artifact to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Jan 8, 2024
1 parent a8fc9c9 commit f537e1d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: '3.11'
- run: pip install . matplotlib pycryptodome rc4
- run: nice -19 python benchmark.py -o benchmark.svg
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: benchmark
path: benchmark.svg
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
with:
python-version: '3.11'
- run: python setup.py sdist --verbose
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: arc4-sdist
path: dist/arc4-*.tar.gz
build-wheels:
runs-on: "${{ matrix.os }}"
Expand All @@ -46,8 +47,9 @@ jobs:
python-version: "${{ matrix.python-version }}"
- run: pip install wheel
- run: python setup.py bdist_wheel
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: arc4-wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*whl
build-manylinux-wheels:
runs-on: ubuntu-22.04
Expand All @@ -69,8 +71,9 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: /opt/python/${{ matrix.python-version }}/bin/pip wheel .
- run: auditwheel repair arc4-*-linux*.whl --plat manylinux_2_28_x86_64
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: arc4-wheels-manylinux-${{ matrix.python-version }}
path: wheelhouse/arc4-*-manylinux*.whl
deploy:
if: ${{ github.event_name == 'push' || github.event.inputs.dry-run != 'true' }}
Expand All @@ -84,7 +87,11 @@ jobs:
with:
python-version: '3.11'
- run: pip install twine
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
pattern: arc4-*
merge-multiple: true
path: artifact
- run: twine upload --verbose artifact/*
env:
TWINE_NON_INTERACTIVE: 1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ jobs:
gcov -o build/temp.* arc4.c
rm -f *.h.gcov
./cc-test-reporter format-coverage --input-type gcov --output 'coverage.${{ matrix.python-version }}.xml' .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverages
name: coverages-${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}.xml
upload-coverage:
runs-on: ubuntu-22.04
needs: test
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: coverages
pattern: coverages-*
merge-multiple: true
- name: Install cc-test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
Expand Down

0 comments on commit f537e1d

Please sign in to comment.