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

Skip to content

Commit da1736b

Browse files
[3.11] CI: Include Python version in cache.config key (GH-111410) (#111422)
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 1a01ca4 commit da1736b

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
@@ -12,15 +12,13 @@ on:
1212
- '3.10'
1313
- '3.9'
1414
- '3.8'
15-
- '3.7'
1615
pull_request:
1716
branches:
1817
- 'main'
1918
- '3.11'
2019
- '3.10'
2120
- '3.9'
2221
- '3.8'
23-
- '3.7'
2422

2523
permissions:
2624
contents: read
@@ -144,14 +142,14 @@ jobs:
144142
if: needs.check_source.outputs.run_tests == 'true'
145143
steps:
146144
- uses: actions/checkout@v4
145+
- uses: actions/setup-python@v4
146+
with:
147+
python-version: '3.x'
147148
- name: Restore config.cache
148149
uses: actions/cache@v3
149150
with:
150151
path: config.cache
151-
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
152-
- uses: actions/setup-python@v4
153-
with:
154-
python-version: '3.x'
152+
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
155153
- name: Install Dependencies
156154
run: sudo ./.github/workflows/posix-deps-apt.sh
157155
- name: Add ccache to PATH
@@ -296,7 +294,7 @@ jobs:
296294
- uses: actions/checkout@v4
297295
- name: Register gcc problem matcher
298296
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
299-
- name: Install Dependencies
297+
- name: Install dependencies
300298
run: sudo ./.github/workflows/posix-deps-apt.sh
301299
- name: Configure OpenSSL env vars
302300
run: |

0 commit comments

Comments
 (0)
0