Skip to content

Commit

Permalink
Update GitHub artifact actions from @V3 to @v4
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Feb 14, 2025
1 parent 35202f1 commit de455ca
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
branches:
- master
- release
- ci

# or a pull request to master branch
pull_request:
Expand All @@ -52,7 +53,7 @@ jobs:
strategy:
max-parallel: 15
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:

- name: upload_sdist
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.tar.gz
Expand Down Expand Up @@ -191,10 +192,13 @@ jobs:
CIBW_TEST_COMMAND: python -m sgp4.tests
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"

- name: list_wheels
run: ls wheelhouse

- name: upload_wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheelhouse
name: wheelhouse-${{ matrix.os }}
path: wheelhouse

upload_to_pypi:
Expand All @@ -214,13 +218,13 @@ jobs:
- uses: actions/setup-python@v4

# download dist files
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist

# download wheels
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheelhouse
path: dist
Expand Down

0 comments on commit de455ca

Please sign in to comment.