diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-28 07:51:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 07:51:57 (GMT) |
commit | da1736b06a40dc2af4ecb587effd3a119cfcca80 (patch) | |
tree | 48ea799fa54a0aa35ce7e2e6bd949067f726ab8e /.github | |
parent | 1a01ca44d61d6d90be159771576d6868515399dd (diff) | |
download | cpython-da1736b06a40dc2af4ecb587effd3a119cfcca80.zip cpython-da1736b06a40dc2af4ecb587effd3a119cfcca80.tar.gz cpython-da1736b06a40dc2af4ecb587effd3a119cfcca80.tar.bz2 |
[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 9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cebcc3e..71901d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,6 @@ on: - '3.10' - '3.9' - '3.8' - - '3.7' pull_request: branches: - 'main' @@ -20,7 +19,6 @@ on: - '3.10' - '3.9' - '3.8' - - '3.7' permissions: contents: read @@ -144,14 +142,14 @@ jobs: if: needs.check_source.outputs.run_tests == 'true' steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.x' - name: Restore config.cache uses: actions/cache@v3 with: path: config.cache - key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }} - - uses: actions/setup-python@v4 - with: - python-version: '3.x' + key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }} - name: Install Dependencies run: sudo ./.github/workflows/posix-deps-apt.sh - name: Add ccache to PATH @@ -296,7 +294,7 @@ jobs: - uses: actions/checkout@v4 - name: Register gcc problem matcher run: echo "::add-matcher::.github/problem-matchers/gcc.json" - - name: Install Dependencies + - name: Install dependencies run: sudo ./.github/workflows/posix-deps-apt.sh - name: Configure OpenSSL env vars run: | |