Skip to content

Commit

Permalink
Merge pull request #985 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 10b3c81 + 62985b2 commit 33ef41a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
uses: styfle/[email protected]
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
if: steps.clang_format.outputs.cache-hit != 'true'
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/[email protected].0
- uses: pre-commit/[email protected].1

test:
name: Python
Expand All @@ -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
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 33ef41a

Please sign in to comment.