diff --git a/.github/workflows/python_unit_tests.yaml b/.github/workflows/python_unit_tests.yaml index bad2410..71ec962 100644 --- a/.github/workflows/python_unit_tests.yaml +++ b/.github/workflows/python_unit_tests.yaml @@ -43,6 +43,11 @@ on: required: false type: string default: auto + timeout_minutes: + description: Maximum minutes a single matrix job may run before it is cancelled, so a hung test fails fast. + required: false + type: number + default: 60 jobs: unit_tests: @@ -53,6 +58,7 @@ jobs: os: ${{ fromJSON(inputs.operating_systems) }} python-version: ${{ fromJSON(inputs.python_versions) }} runs-on: ${{ matrix.os }} + timeout-minutes: ${{ inputs.timeout_minutes }} env: HTTPBIN_URL: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org' }} TESTS_CONCURRENCY: ${{ inputs.tests_concurrency }}