Skip to content

Commit

Permalink
Merge pull request #93 from benjeffery/update-actions-2412
Browse files Browse the repository at this point in the history
Update GitHub Actions to latest major versions
  • Loading branch information
benjeffery authored Dec 11, 2024
2 parents d84a018 + e9fd1e7 commit 3a68a42
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2

- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"
cache: 'pip'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected].0
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.3.0
- uses: pre-commit/[email protected].1

test:
name: Python
Expand All @@ -35,12 +35,12 @@ jobs:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
submodules: true

- name: Install Conda
uses: conda-incubator/setup-miniconda@v3
uses: conda-incubator/setup-miniconda@v3.1.0
with:
activate-environment: anaconda-client-env
python-version: ${{ matrix.python }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
submodules: true

- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"

Expand All @@ -31,7 +31,7 @@ jobs:
python -m build --sdist
- name: Upload sdist
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: sdist
path: dist
Expand All @@ -42,7 +42,7 @@ jobs:
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash .github/workflows/docker/buildwheel.sh
- name: Upload Wheels
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: wheels
path: dist
Expand All @@ -55,11 +55,11 @@ jobs:
python: [3.9, "3.10", 3.11, 3.12]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: wheels
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -78,11 +78,11 @@ jobs:
wordsize: [64]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: wheels
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -101,11 +101,11 @@ jobs:
python: [3.9, "3.10", 3.11, 3.12]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: wheels
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -124,16 +124,16 @@ jobs:
id-token: write
steps:
- name: Download all
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
- name: Move to dist
run: |
mkdir dist
cp */*.{whl,gz} dist/.
- name: Publish distribution to Test PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1.8
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PRODUCTION PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1.8
uses: pypa/gh-action-pypi-publish@v1.12.3

0 comments on commit 3a68a42

Please sign in to comment.