Skip to content

Commit

Permalink
Update outdated versions in GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Sep 3, 2024
1 parent 15968d3 commit fdbc054
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 40 deletions.
70 changes: 38 additions & 32 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
CIBW_TEST_REQUIRES: importlib-resources
with:
output-dir: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.python-tag }}
path: dist/*

wheel-linux-x86_64:
Expand Down Expand Up @@ -81,9 +81,9 @@ jobs:
CIBW_TEST_REQUIRES: importlib-resources
with:
output-dir: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.python-tag }}
path: dist/*

wheel-macos-x86_64:
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
CIBW_TEST_REQUIRES: importlib-resources
with:
output-dir: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.python-tag }}
path: dist/*

wheel-macos-aarch64:
Expand All @@ -147,11 +147,12 @@ jobs:
CIBW_BUILD_VERBOSITY: 2
CIBW_TEST_COMMAND: python -m unittest pyrodigal.tests -vv
CIBW_TEST_REQUIRES: importlib-resources
CIBW_TEST_SKIP: "*-macosx_arm64"
with:
output-dir: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.python-tag }}
path: dist/*

wheel-win32-x86_64:
Expand Down Expand Up @@ -186,9 +187,9 @@ jobs:
CIBW_TEST_REQUIRES: importlib-resources
with:
output-dir: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.python-tag }}
path: dist/*

sdist:
Expand All @@ -198,18 +199,18 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.11
uses: actions/setup-python@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build source distribution
run: python setup.py sdist
- name: Store built source distribution
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
name: sdist
path: dist/*

test-sdist:
Expand All @@ -218,14 +219,14 @@ jobs:
needs:
- sdist
steps:
- name: Setup Python 3.11
uses: actions/setup-python@v4
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: 3.12
- name: Download built wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wheels
name: sdist
path: dist/
- name: Update pip to latest version
run: python -m pip install -U pip setuptools wheel
Expand All @@ -249,25 +250,30 @@ jobs:
- wheel-macos-x86_64
- wheel-win32-x86_64
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: wheels
name: sdist
path: dist
merge-multiple: true
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags')

release:
environment: GitHub Releases
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write
if: "!contains(github.ref, 'rc')"
name: Release
needs: upload
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: rasmus-saks/[email protected]
- uses: rasmus-saks/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

Expand All @@ -283,14 +289,14 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Download built wheels
uses: actions/download-artifact@v2
python-version: 3.12
- name: Download source distribution
uses: actions/download-artifact@v4
with:
name: wheels
name: sdist
path: dist
- name: Extract package version
run: echo PKGVER=$(python setup.py --version) >> $GITHUB_ENV
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand Down Expand Up @@ -116,11 +116,11 @@ jobs:
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand Down Expand Up @@ -178,11 +178,11 @@ jobs:
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down Expand Up @@ -212,11 +212,11 @@ jobs:
python-impl: CPython
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand Down

0 comments on commit fdbc054

Please sign in to comment.