Unverified 提交 ad27dc75 authored 作者: dependabot[bot]'s avatar dependabot[bot] 提交者: GitHub

Bump actions/upload-artifact from 3 to 4 (#560)

* Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: 's avatardependabot[bot] <support@github.com> * Migrate pypi to GHA artifacts v4 * Bump download-artifact to v4 * Eliminate undefined matrix.python-version variable * Upload/download each platform separately * Use pattern arg to download-artifact --------- Signed-off-by: 's avatardependabot[bot] <support@github.com> Co-authored-by: 's avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 's avatarBen Mares <services-git-throwaway1@tensorial.com>
上级 cac9febf
...@@ -30,12 +30,13 @@ jobs: ...@@ -30,12 +30,13 @@ jobs:
- name: Build SDist - name: Build SDist
run: pipx run build --sdist run: pipx run build --sdist
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: sdist
path: dist/*.tar.gz path: dist/*.tar.gz
build_wheels: build_wheels:
name: Build ${{ matrix.python-version }} wheels on ${{ matrix.platform }} name: Build wheels for ${{ matrix.platform }}
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
strategy: strategy:
matrix: matrix:
...@@ -51,8 +52,9 @@ jobs: ...@@ -51,8 +52,9 @@ jobs:
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.19.2 uses: pypa/cibuildwheel@v2.19.2
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: wheels-${{ matrix.platform }}
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
check_dist: check_dist:
...@@ -60,10 +62,17 @@ jobs: ...@@ -60,10 +62,17 @@ jobs:
needs: [make_sdist,build_wheels] needs: [make_sdist,build_wheels]
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: artifact name: sdist
path: dist path: dist
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true
- name: Check SDist - name: Check SDist
run: | run: |
mkdir -p test-sdist mkdir -p test-sdist
...@@ -83,12 +92,18 @@ jobs: ...@@ -83,12 +92,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published' if: github.event_name == 'release' && github.event.action == 'published'
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: artifact name: sdist
path: dist path: dist
- uses: pypa/gh-action-pypi-publish@v1.9.0 - uses: actions/download-artifact@v4
with: with:
user: __token__ pattern: wheels-*
password: ${{ secrets.pypi_password }} path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
...@@ -187,9 +187,9 @@ jobs: ...@@ -187,9 +187,9 @@ jobs:
FLOAT32: ${{ matrix.float32 }} FLOAT32: ${{ matrix.float32 }}
- name: Upload coverage file - name: Upload coverage file
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: coverage name: coverage-${{ steps.matrix-id.outputs.id }}
path: coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml path: coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml
benchmarks: benchmarks:
...@@ -273,10 +273,11 @@ jobs: ...@@ -273,10 +273,11 @@ jobs:
python -m pip install -U coverage>=5.1 coveralls python -m pip install -U coverage>=5.1 coveralls
- name: Download coverage file - name: Download coverage file
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: coverage pattern: coverage-*
path: coverage path: coverage
merge-multiple: true
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v4
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论