From 62985b292d3569bcb2da256bc9dce5ce82a686b6 Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Wed, 11 Dec 2024 11:38:24 +0000 Subject: [PATCH] Update GitHub Actions to latest major versions --- .github/workflows/docs.yml | 4 ++-- .github/workflows/tests.yml | 12 ++++++------ .github/workflows/wheels.yml | 36 ++++++++++++++++++------------------ 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7dd0bb7b..60fed9da 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,11 +23,11 @@ jobs: with: access_token: ${{ github.token }} - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.2.2 with: submodules: true - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5.3.0 with: python-version: "3.11" cache: "pip" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index efd6c499..362703c7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,8 +14,8 @@ jobs: uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v4.2.2 + - uses: actions/setup-python@v5.3.0 with: python-version: '3.10' - name: install clang-format @@ -23,7 +23,7 @@ jobs: run: | sudo pip install clang-format==6.0.1 sudo ln -s /usr/local/bin/clang-format /usr/local/bin/clang-format-6.0 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 test: name: Python @@ -43,19 +43,19 @@ jobs: access_token: ${{ github.token }} - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 with: submodules: true - name: Cache conda and dependancies id: cache - uses: actions/cache@v4 + uses: actions/cache@v4.2.0 with: path: ${{ env.CONDA }}/envs key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.python}}-conda-v5-${{ hashFiles('requirements/CI-tests-conda/requirements.txt')}} - name: Install Miniconda with Mamba - uses: conda-incubator/setup-miniconda@v3 + uses: conda-incubator/setup-miniconda@v3.1.0 if: steps.cache.outputs.cache-hit != 'true' with: activate-environment: anaconda-client-env diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d1043d4c..468aa621 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -18,11 +18,11 @@ jobs: python: [3.9, "3.10", 3.11, 3.12] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4.2.2 with: submodules: true - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ matrix.python }} - name: Install deps @@ -35,7 +35,7 @@ jobs: run: | delocate-wheel -v dist/*.whl - name: Upload Wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: osx-wheel-${{ matrix.python }} path: dist @@ -48,7 +48,7 @@ jobs: wordsize: [64] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4.2.2 with: submodules: true - name: Install deps @@ -66,7 +66,7 @@ jobs: set -ex ${PYTHON} -m build --wheel - name: Upload Wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: win-wheel-${{ matrix.python }}-${{ matrix.wordsize }} path: dist @@ -75,12 +75,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4.2.2 with: submodules: true - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.3.0 with: python-version: 3.9 @@ -91,7 +91,7 @@ jobs: python -m build --sdist - name: Upload sdist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: sdist path: dist @@ -102,7 +102,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@v3 + uses: actions/upload-artifact@v4.4.3 with: name: linux-wheels path: dist/wheelhouse @@ -115,11 +115,11 @@ jobs: python: [3.9, "3.10", 3.11, 3.12] steps: - name: Download wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: osx-wheel-${{ matrix.python }} - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ matrix.python }} - name: Install wheel and test @@ -139,11 +139,11 @@ jobs: wordsize: [64] steps: - name: Download wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: win-wheel-${{ matrix.python }}-${{ matrix.wordsize }} - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ matrix.python }} - name: Install wheel and test @@ -164,11 +164,11 @@ jobs: python: [3.9, "3.10", 3.11, 3.12] steps: - name: Download wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: linux-wheels - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ matrix.python }} - name: Install wheel and test @@ -188,16 +188,16 @@ jobs: id-token: write steps: - name: Download all - uses: actions/download-artifact@v3 + 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 + 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 + uses: pypa/gh-action-pypi-publish@v1.12.3