Skip to content

Commit 8e13b0c

Browse files
authored
Update actions and use Python 3.12 (wpilibsuite#211)
1 parent 3cc186c commit 8e13b0c

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/bazel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
# Steps represent a sequence of tasks that will be executed as part of the job
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 0 # Fetch all history so we can use git diff
2727

.github/workflows/generate_bundles.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
generate:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-python@v5
16+
- uses: actions/checkout@v6
17+
- uses: actions/setup-python@v6
1818
with:
1919
python-version: '3.12'
2020
- run: python generate_bundles.py -o bundles 2024 2025beta 2025 2026beta 2026 2027_alpha1
21-
- uses: actions/upload-artifact@v4
21+
- uses: actions/upload-artifact@v6
2222
with:
2323
name: bundles
2424
path: bundles
@@ -34,7 +34,7 @@ jobs:
3434
disable-auto-build-publish: true
3535
env:
3636
JF_ENV_1: ${{ secrets.ARTIFACTORY_CLI_SECRET }}
37-
- uses: actions/download-artifact@v4
37+
- uses: actions/download-artifact@v7
3838
with:
3939
name: bundles
4040
path: bundles

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ jobs:
2323

2424
# Steps represent a sequence of tasks that will be executed as part of the job
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
with:
2828
fetch-depth: 0 # Fetch all history so we can use git diff
2929

30+
- uses: actions/setup-python@v6
31+
with:
32+
python-version: '3.12'
33+
3034
- name: Install dependencies
31-
run: sudo pip3 install pyelftools pefile
35+
run: pip3 install pyelftools pefile
3236

3337
- name: Run check
3438
run: |

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bazel_dep(name = "rules_python", version = "0.37.0")
88

99
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1010
python.toolchain(
11-
python_version = "3.10",
11+
python_version = "3.12",
1212
)
1313
use_repo(python, "python_versions")
1414

@@ -19,7 +19,7 @@ register_toolchains(
1919
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
2020
pip.parse(
2121
hub_name = "vendor-json-repo-pip",
22-
python_version = "3.10",
22+
python_version = "3.12",
2323
requirements_lock = "//:requirements_lock.txt",
2424
)
2525
use_repo(pip, "vendor-json-repo-pip")

MODULE.bazel.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_lock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# bazel run //:requirements.update

0 commit comments

Comments
 (0)