mirror of https://github.com/python/cpython
gh-103180: Add CI timeouts to all GitHub Actions jobs (#103437)
This commit is contained in:
parent
1aa376f946
commit
be8903eb9d
|
@ -33,6 +33,7 @@ jobs:
|
||||||
check_source:
|
check_source:
|
||||||
name: 'Check for source changes'
|
name: 'Check for source changes'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
outputs:
|
outputs:
|
||||||
run_tests: ${{ steps.check.outputs.run_tests }}
|
run_tests: ${{ steps.check.outputs.run_tests }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -63,6 +64,7 @@ jobs:
|
||||||
check_generated_files:
|
check_generated_files:
|
||||||
name: 'Check if generated files are up to date'
|
name: 'Check if generated files are up to date'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
steps:
|
steps:
|
||||||
|
@ -118,6 +120,7 @@ jobs:
|
||||||
build_win32:
|
build_win32:
|
||||||
name: 'Windows (x86)'
|
name: 'Windows (x86)'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
env:
|
env:
|
||||||
|
@ -126,7 +129,6 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
run: .\PCbuild\build.bat -e -d -p Win32
|
run: .\PCbuild\build.bat -e -d -p Win32
|
||||||
timeout-minutes: 30
|
|
||||||
- name: Display build info
|
- name: Display build info
|
||||||
run: .\python.bat -m test.pythoninfo
|
run: .\python.bat -m test.pythoninfo
|
||||||
- name: Tests
|
- name: Tests
|
||||||
|
@ -135,6 +137,7 @@ jobs:
|
||||||
build_win_amd64:
|
build_win_amd64:
|
||||||
name: 'Windows (x64)'
|
name: 'Windows (x64)'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
env:
|
env:
|
||||||
|
@ -145,7 +148,6 @@ jobs:
|
||||||
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
run: .\PCbuild\build.bat -e -d -p x64
|
run: .\PCbuild\build.bat -e -d -p x64
|
||||||
timeout-minutes: 30
|
|
||||||
- name: Display build info
|
- name: Display build info
|
||||||
run: .\python.bat -m test.pythoninfo
|
run: .\python.bat -m test.pythoninfo
|
||||||
- name: Tests
|
- name: Tests
|
||||||
|
@ -154,6 +156,7 @@ jobs:
|
||||||
build_macos:
|
build_macos:
|
||||||
name: 'macOS'
|
name: 'macOS'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
env:
|
env:
|
||||||
|
@ -184,6 +187,7 @@ jobs:
|
||||||
build_ubuntu:
|
build_ubuntu:
|
||||||
name: 'Ubuntu'
|
name: 'Ubuntu'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
env:
|
env:
|
||||||
|
@ -241,6 +245,7 @@ jobs:
|
||||||
build_ubuntu_ssltests:
|
build_ubuntu_ssltests:
|
||||||
name: 'Ubuntu SSL tests with OpenSSL'
|
name: 'Ubuntu SSL tests with OpenSSL'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -290,6 +295,7 @@ jobs:
|
||||||
build_asan:
|
build_asan:
|
||||||
name: 'Address sanitizer'
|
name: 'Address sanitizer'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -26,6 +26,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Windows Installer
|
name: Windows Installer
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
type: [x86, x64, arm64]
|
type: [x86, x64, arm64]
|
||||||
|
|
|
@ -36,6 +36,7 @@ jobs:
|
||||||
build_doc:
|
build_doc:
|
||||||
name: 'Docs'
|
name: 'Docs'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Register Sphinx problem matcher
|
- name: Register Sphinx problem matcher
|
||||||
|
@ -80,6 +81,7 @@ jobs:
|
||||||
doctest:
|
doctest:
|
||||||
name: 'Doctest'
|
name: 'Doctest'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Register Sphinx problem matcher
|
- name: Register Sphinx problem matcher
|
||||||
|
|
|
@ -11,6 +11,7 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
notify-new-bugs-announce:
|
notify-new-bugs-announce:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -13,6 +13,7 @@ jobs:
|
||||||
add-to-project:
|
add-to-project:
|
||||||
name: Add issues to projects
|
name: Add issues to projects
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
|
@ -8,6 +8,7 @@ jobs:
|
||||||
label:
|
label:
|
||||||
name: DO-NOT-MERGE
|
name: DO-NOT-MERGE
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: mheap/github-action-required-labels@v4
|
- uses: mheap/github-action-required-labels@v4
|
||||||
|
|
|
@ -12,6 +12,7 @@ jobs:
|
||||||
if: github.repository_owner == 'python'
|
if: github.repository_owner == 'python'
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Check PRs"
|
- name: "Check PRs"
|
||||||
|
|
|
@ -23,6 +23,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
|
Loading…
Reference in New Issue