Skip to content

Commit 3529974

Browse files
authored
Update GitHub Actions for Node 24 runtime (#1652)
* Update GitHub Actions for Node 24 runtime * Fix CI warnings and changelog checks * Clean up CI warnings * Clean up CI warnings
1 parent 2af6ade commit 3529974

6 files changed

Lines changed: 35 additions & 36 deletions

File tree

.claude/worktrees/agent-a52e6193

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/code_changes.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
Lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v5
21+
uses: astral-sh/setup-uv@v8.1.0
2222
- name: Check formatting
2323
run: uvx ruff format --check .
2424
Test:
@@ -28,15 +28,15 @@ jobs:
2828
id-token: "write"
2929
steps:
3030
- name: Checkout repo
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232
- name: Install uv
33-
uses: astral-sh/setup-uv@v5
33+
uses: astral-sh/setup-uv@v8.1.0
3434

3535
- name: Set up Python
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version: '3.13'
39-
- uses: "google-github-actions/auth@v2"
39+
- uses: "google-github-actions/auth@v3"
4040
with:
4141
workload_identity_provider: "projects/322898545428/locations/global/workloadIdentityPools/policyengine-research-id-pool/providers/prod-github-provider"
4242
service_account: "policyengine-research@policyengine-research.iam.gserviceaccount.com"
@@ -59,8 +59,8 @@ jobs:
5959
env:
6060
HF_TOKEN_VALUE: ${{ secrets.HUGGING_FACE_TOKEN }}
6161
- name: Upload coverage to Codecov
62-
uses: codecov/codecov-action@v4
62+
uses: codecov/codecov-action@v6
6363
with:
64-
file: ./coverage.xml
64+
files: ./coverage.xml
6565
fail_ci_if_error: false
6666
verbose: true

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ jobs:
3131
url: ${{ steps.deployment.outputs.page_url }}
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v6
3535
- name: Setup Pages
36-
uses: actions/configure-pages@v3
37-
- uses: actions/setup-node@v4
36+
uses: actions/configure-pages@v6
37+
- uses: actions/setup-node@v6
3838
with:
3939
node-version: 24.x
4040
- name: Install MyST
4141
run: npm install -g mystmd
4242
- name: Build HTML Assets
4343
run: myst build --html
4444
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v3
45+
uses: actions/upload-pages-artifact@v5
4646
with:
4747
path: './_build/html'
4848
- name: Deploy to GitHub Pages
4949
id: deployment
50-
uses: actions/deploy-pages@v4
50+
uses: actions/deploy-pages@v5

.github/workflows/pr_code_changes.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ jobs:
2323
matrix:
2424
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v5
32+
uses: astral-sh/setup-uv@v8.1.0
3333
- name: Install package
3434
run: uv pip install --system .
3535
- name: Smoke-import
3636
run: python -c "import policyengine_uk; print('import OK')"
3737
Lint:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v6
4141
- name: Install uv
42-
uses: astral-sh/setup-uv@v5
42+
uses: astral-sh/setup-uv@v8.1.0
4343
- name: Check formatting
4444
run: uvx ruff format --check .
4545
Test:
@@ -49,15 +49,15 @@ jobs:
4949
id-token: "write"
5050
steps:
5151
- name: Checkout repo
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
5353
- name: Install uv
54-
uses: astral-sh/setup-uv@v5
54+
uses: astral-sh/setup-uv@v8.1.0
5555

5656
- name: Set up Python
57-
uses: actions/setup-python@v5
57+
uses: actions/setup-python@v6
5858
with:
5959
python-version: '3.13'
60-
- uses: "google-github-actions/auth@v2"
60+
- uses: "google-github-actions/auth@v3"
6161
with:
6262
workload_identity_provider: "projects/322898545428/locations/global/workloadIdentityPools/policyengine-research-id-pool/providers/prod-github-provider"
6363
service_account: "policyengine-research@policyengine-research.iam.gserviceaccount.com"
@@ -78,9 +78,9 @@ jobs:
7878
env:
7979
HF_TOKEN_VALUE: ${{ secrets.HUGGING_FACE_TOKEN }}
8080
- name: Upload coverage to Codecov
81-
uses: codecov/codecov-action@v4
81+
uses: codecov/codecov-action@v6
8282
with:
83-
file: ./coverage.xml
83+
files: ./coverage.xml
8484
fail_ci_if_error: false
8585
verbose: true
8686
- name: Test documentation builds

.github/workflows/pr_docs_changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
name: Test documentation builds
1818
steps:
1919
- name: Checkout repo
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v5
22+
uses: astral-sh/setup-uv@v8.1.0
2323

2424
- name: Set up Python
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: '3.13'
2828

.github/workflows/versioning.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
committed: ${{ steps.commit.outputs.committed }}
2727
steps:
2828
- name: Checkout repo
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: 0
3232
- name: Install uv
33-
uses: astral-sh/setup-uv@v5
33+
uses: astral-sh/setup-uv@v8.1.0
3434
- name: Setup Python
35-
uses: actions/setup-python@v5
35+
uses: actions/setup-python@v6
3636
with:
3737
python-version: 3.12
3838
- name: Install towncrier
@@ -43,7 +43,7 @@ jobs:
4343
towncrier build --yes --version $(python -c "import re; print(re.search(r'version = \"(.+?)\"', open('pyproject.toml').read()).group(1))")
4444
- name: Update changelog
4545
id: commit
46-
uses: EndBug/add-and-commit@v9
46+
uses: EndBug/add-and-commit@v10
4747
with:
4848
add: "."
4949
message: Update package version
@@ -54,19 +54,19 @@ jobs:
5454
steps:
5555
- name: Generate GitHub App token
5656
id: app-token
57-
uses: actions/create-github-app-token@v1
57+
uses: actions/create-github-app-token@v3
5858
with:
5959
app-id: ${{ secrets.APP_ID }}
6060
private-key: ${{ secrets.APP_PRIVATE_KEY }}
6161
- name: Checkout repo
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@v6
6363
with:
6464
ref: main
6565
- name: Install uv
66-
uses: astral-sh/setup-uv@v5
66+
uses: astral-sh/setup-uv@v8.1.0
6767

6868
- name: Set up Python
69-
uses: actions/setup-python@v5
69+
uses: actions/setup-python@v6
7070
with:
7171
python-version: '3.13'
7272
- name: Install package

0 commit comments

Comments
 (0)