Skip to content

Commit

Permalink
Update GitHub Actions to latest major versions
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Dec 11, 2024
1 parent 441ea2b commit c9da40d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

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

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"
cache: 'pip'
Expand Down
24 changes: 12 additions & 12 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@v4
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"

Expand All @@ -31,7 +31,7 @@ jobs:
python -m build
- name: Upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: sdist-wheel
path: dist
Expand All @@ -45,11 +45,11 @@ jobs:
python: [3.8, 3.8, 3.9, "3.10", 3.11]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: sdist-wheel
- 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 @@ -71,11 +71,11 @@ jobs:
wordsize: [64]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: sdist-wheel
- 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 @@ -96,11 +96,11 @@ jobs:
python: [3.8, 3.9, "3.10", 3.11]
steps:
- name: Download wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
name: sdist-wheel
- 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 @@ -122,17 +122,17 @@ 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
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 c9da40d

Please sign in to comment.