Skip to content

Commit

Permalink
Merge pull request #242 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 ac29096 + 74d8fff commit 70f4875
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ 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
with:
submodules: true

- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.3.0
with:
python-version: "3.11"
cache: "pip"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
SCREENSHOTS_BRANCH: "pr-screenshots"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.3.0
with:
python-version: '3.11'
cache: 'pip'
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
git push origin $SCREENSHOTS_BRANCH
- name: Update or Post Comment
uses: actions/github-script@v6
uses: actions/github-script@v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Build Distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.3.0
with:
python-version: '3.12'
- name: Install dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
python3 -m twine check dist/*
- name: Upload wheel and sdist
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.4.3
with:
name: wheels
path: dist
Expand All @@ -41,11 +41,11 @@ jobs:
python: ["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@v4
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -64,11 +64,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@v4
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -87,11 +87,11 @@ jobs:
python: ["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@v4
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python }}
- name: Install wheel and test
Expand All @@ -109,17 +109,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

14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ 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/setup-python@v4
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.3.0
with:
python-version: '3.11'
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1

test:
name: Python
Expand All @@ -33,14 +33,14 @@ jobs:
shell: bash
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 }}

- name: Checkout
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.11'
cache: 'pip'
Expand Down

0 comments on commit 70f4875

Please sign in to comment.