8000 [3.12] CI: Include Python version in cache.config key (GH-111410) (#1… · python/cpython@cf29a2f · GitHub
[go: up one dir, main page]

Skip to content

Commit cf29a2f

Browse files
[3.12] CI: Include Python version in cache.config key (GH-111410) (#111421)
CI: Include Python version in cache.config key (GH-111410) * Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent c3f75b7 commit cf29a2f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
- '3.10'
1414
- '3.9'
1515
- '3.8'
16-
- '3.7'
1716
pull_request:
1817
branches:
1918
- 'main'
@@ -22,7 +21,6 @@ on:
2221
- '3.10'
2322
- '3.9'
2423
- '3.8'
25-
- '3.7'
2624

2725
permissions:
2826
contents: read
@@ -155,14 +153,14 @@ jobs:
155153
if: needs.check_source.outputs.run_tests == 'true'
156154
steps:
157155
- uses: actions/checkout@v4
156+
- uses: actions/setup-python@v4
157+
with:
158+
python-version: '3.x'
158159
- name: Restore config.cache
159160
uses: actions/cache@v3
160161
with:
161162
path: config.cache
162-
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
163-
- uses: actions/setup-python@v4
164-
with:
165-
python-version: '3.x'
163+
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
166164
- name: Install Dependencies
167165
run: sudo ./.github/workflows/posix-deps-apt.sh
168166
- name: Add ccache to PATH
@@ -310,7 +308,7 @@ jobs:
310308
- uses: actions/checkout@v4
311309
- name: Register gcc problem matcher
312310
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
313-
- name: Install Dependencies
311+
- name: Install dependencies
314312
run: sudo ./.github/workflows/posix-deps-apt.sh
315313
- name: Configure OpenSSL env vars
316314
run: |

0 commit comments

Comments
 (0)
0