mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.12] Bump GitHub Actions (GH-116944) (#116948)
(cherry picked from commit 3a99f5c5f3
)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
547e8827e6
commit
e1f890828e
11 changed files with 28 additions and 28 deletions
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
@ -81,7 +81,7 @@ jobs:
|
||||||
- name: Get a list of the changed documentation-related files
|
- name: Get a list of the changed documentation-related files
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
id: changed-docs-files
|
id: changed-docs-files
|
||||||
uses: Ana06/get-changed-files@v2.2.0
|
uses: Ana06/get-changed-files@v2.3.0
|
||||||
with:
|
with:
|
||||||
filter: |
|
filter: |
|
||||||
Doc/**
|
Doc/**
|
||||||
|
@ -109,7 +109,7 @@ jobs:
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo ./.github/workflows/posix-deps-apt.sh
|
sudo ./.github/workflows/posix-deps-apt.sh
|
||||||
|
@ -138,7 +138,7 @@ jobs:
|
||||||
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
||||||
run: |
|
run: |
|
||||||
make regen-abidump
|
make regen-abidump
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
name: Publish updated ABI files
|
name: Publish updated ABI files
|
||||||
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
||||||
with:
|
with:
|
||||||
|
@ -155,13 +155,13 @@ jobs:
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: config.cache
|
path: config.cache
|
||||||
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
|
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
|
||||||
|
@ -262,7 +262,7 @@ jobs:
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: config.cache
|
path: config.cache
|
||||||
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
||||||
|
@ -277,7 +277,7 @@ jobs:
|
||||||
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
||||||
- name: 'Restore OpenSSL build'
|
- name: 'Restore OpenSSL build'
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||||
|
@ -322,7 +322,7 @@ jobs:
|
||||||
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
||||||
- name: 'Restore OpenSSL build'
|
- name: 'Restore OpenSSL build'
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||||
|
@ -347,7 +347,7 @@ jobs:
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
|
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
|
||||||
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
||||||
|
@ -380,7 +380,7 @@ jobs:
|
||||||
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
|
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
|
||||||
- name: 'Restore Hypothesis database'
|
- name: 'Restore Hypothesis database'
|
||||||
id: cache-hypothesis-database
|
id: cache-hypothesis-database
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./hypothesis
|
path: ./hypothesis
|
||||||
key: hypothesis-database-${{ github.head_ref || github.run_id }}
|
key: hypothesis-database-${{ github.head_ref || github.run_id }}
|
||||||
|
@ -406,7 +406,7 @@ jobs:
|
||||||
-x test_subprocess \
|
-x test_subprocess \
|
||||||
-x test_signal \
|
-x test_signal \
|
||||||
-x test_sysconfig
|
-x test_sysconfig
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: hypothesis-example-db
|
name: hypothesis-example-db
|
||||||
|
@ -428,7 +428,7 @@ jobs:
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: config.cache
|
path: config.cache
|
||||||
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
|
||||||
|
@ -447,7 +447,7 @@ jobs:
|
||||||
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
||||||
- name: 'Restore OpenSSL build'
|
- name: 'Restore OpenSSL build'
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||||
|
|
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- uses: pre-commit/action@v3.0.0
|
- uses: pre-commit/action@v3.0.1
|
||||||
|
|
2
.github/workflows/mypy.yml
vendored
2
.github/workflows/mypy.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
@ -13,12 +13,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
- run: npm install mailgun.js form-data
|
- run: npm install mailgun.js form-data
|
||||||
- name: Send notification
|
- name: Send notification
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
env:
|
env:
|
||||||
MAILGUN_API_KEY: ${{ secrets.MAILGUN_PYTHON_ORG_MAILGUN_KEY }}
|
MAILGUN_API_KEY: ${{ secrets.MAILGUN_PYTHON_ORG_MAILGUN_KEY }}
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/project-updater.yml
vendored
2
.github/workflows/project-updater.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- { project: 32, label: sprint }
|
- { project: 32, label: sprint }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/add-to-project@v0.1.0
|
- uses: actions/add-to-project@v0.6.0
|
||||||
with:
|
with:
|
||||||
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
|
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
|
||||||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
||||||
|
|
2
.github/workflows/require-pr-label.yml
vendored
2
.github/workflows/require-pr-label.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: mheap/github-action-required-labels@v4
|
- uses: mheap/github-action-required-labels@v5
|
||||||
with:
|
with:
|
||||||
mode: exactly
|
mode: exactly
|
||||||
count: 0
|
count: 0
|
||||||
|
|
6
.github/workflows/reusable-docs.yml
vendored
6
.github/workflows/reusable-docs.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
git fetch origin ${{ env.refspec_base }} --shallow-since="${DATE}" \
|
git fetch origin ${{ env.refspec_base }} --shallow-since="${DATE}" \
|
||||||
--no-tags --prune --no-recurse-submodules
|
--no-tags --prune --no-recurse-submodules
|
||||||
- name: 'Set up Python'
|
- name: 'Set up Python'
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3'
|
python-version: '3'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
@ -72,7 +72,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: 'Set up Python'
|
- name: 'Set up Python'
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11' # known to work with Sphinx 4.2
|
python-version: '3.11' # known to work with Sphinx 4.2
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
@ -89,7 +89,7 @@ jobs:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}
|
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}
|
||||||
|
|
2
.github/workflows/reusable-macos.yml
vendored
2
.github/workflows/reusable-macos.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: config.cache
|
path: config.cache
|
||||||
key: ${{ github.job }}-${{ matrix.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
|
key: ${{ github.job }}-${{ matrix.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
|
||||||
|
|
4
.github/workflows/reusable-ubuntu.yml
vendored
4
.github/workflows/reusable-ubuntu.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
||||||
- name: 'Restore OpenSSL build'
|
- name: 'Restore OpenSSL build'
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
- name: Runner image version
|
- name: Runner image version
|
||||||
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
|
||||||
- name: Restore config.cache
|
- name: Restore config.cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
|
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
|
||||||
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
|
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
|
||||||
|
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Check PRs"
|
- name: "Check PRs"
|
||||||
uses: actions/stale@v8
|
uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
|
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
|
||||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3'
|
python-version: '3'
|
||||||
- name: Compare checksum of bundled wheels to the ones published on PyPI
|
- name: Compare checksum of bundled wheels to the ones published on PyPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue