Merge pull request #10893 from github/redsun82/setup-python-4 · dscho/codeql@32ac7d6 · GitHub
Skip to content

Commit 32ac7d6

Browse files
authored
Merge pull request github#10893 from github/redsun82/setup-python-4
Swift: bump actions/setup-python from 3 to 4
2 parents 70b48ad + c3693f1 commit 32ac7d6

6 files changed

Lines changed: 17 additions & 5 deletions

File tree

‎.github/workflows/swift-autobuilder.yml‎

Lines changed: 3 additions & 1 deletion

‎.github/workflows/swift-codegen.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- .github/actions/fetch-codeql/action.yml
1111
branches:
1212
- main
13+
defaults:
14+
run:
15+
working-directory: swift
1316

1417
jobs:
1518
codegen:
@@ -18,7 +21,9 @@ jobs:
1821
- uses: actions/checkout@v3
1922
- uses: ./.github/actions/fetch-codeql
2023
- uses: bazelbuild/setup-bazelisk@v2
21-
- uses: actions/setup-python@v3
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version-file: 'swift/.python-version'
2227
- uses: pre-commit/action@v3.0.0
2328
name: Check that python code is properly formatted
2429
with:

‎.github/workflows/swift-integration-tests.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
- uses: actions/checkout@v3
2929
- uses: ./.github/actions/fetch-codeql
3030
- uses: bazelbuild/setup-bazelisk@v2
31-
- uses: actions/setup-python@v3
31+
- uses: actions/setup-python@v4
32+
with:
33+
python-version-file: 'swift/.python-version'
3234
- name: Build Swift extractor
3335
run: |
3436
bazel run //swift:create-extractor-pack

‎.github/workflows/swift-qltest.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- uses: actions/checkout@v3
3434
- uses: ./.github/actions/fetch-codeql
3535
- uses: bazelbuild/setup-bazelisk@v2
36+
- uses: actions/setup-python@v4
37+
with:
38+
python-version-file: 'swift/.python-version'
3639
- name: Build Swift extractor
3740
run: |
3841
bazel run //swift:create-extractor-pack

‎swift/.python-version‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8.14

‎swift/integration-tests/runner.py‎

Lines changed: 1 addition & 2 deletions

0 commit comments

Comments
 (0)