From e9fd1e7084c5aef0e7829827b76342a34810ae2d Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Wed, 11 Dec 2024 11:40:56 +0000 Subject: [PATCH] Update GitHub Actions to latest major versions --- .github/workflows/docs.yml | 4 ++-- .github/workflows/tests.yml | 10 +++++----- .github/workflows/wheels.yml | 26 +++++++++++++------------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 60b8807..57104e8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0fdb802..bb94f0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,9 +14,9 @@ jobs: uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v4.2.2 + - uses: actions/setup-python@v5.3.0 + - uses: pre-commit/action@v3.0.1 test: name: Python @@ -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 }} diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f5ad3d5..2a8b04a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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" @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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