diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 4cb0672..86ef4f4 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e08c86d..b98e22f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}" @@ -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 @@ -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' }} @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36fffb0..7c916e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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