diff --git a/.github/workflows/self-smoke-test-action.yml b/.github/workflows/self-smoke-test-action.yml index ac93d68..580d6f9 100644 --- a/.github/workflows/self-smoke-test-action.yml +++ b/.github/workflows/self-smoke-test-action.yml @@ -10,22 +10,26 @@ on: jobs: failing-job: runs-on: ubuntu-latest + timeout-minutes: 2 steps: - run: exit 1 succeeding-job: runs-on: ubuntu-latest + timeout-minutes: 2 steps: - run: exit 0 skipped-job: if: false runs-on: ubuntu-latest + timeout-minutes: 2 steps: - run: exit 0 partially-failing-partially-skipped-matrix: runs-on: ubuntu-latest + timeout-minutes: 2 continue-on-error: ${{ matrix.rc == '1' }} strategy: matrix: @@ -43,6 +47,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -64,6 +69,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -86,6 +92,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -108,6 +115,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -132,6 +140,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -155,6 +164,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -179,6 +189,7 @@ jobs: - skipped-job if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -203,6 +214,7 @@ jobs: - partially-failing-partially-skipped-matrix if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 @@ -232,6 +244,7 @@ jobs: - allow-partials if: always() runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout the src from Git uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5743b29..2af815e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,4 +28,21 @@ repos: hooks: - id: remove-tabs +- repo: https://github.com/python-jsonschema/check-jsonschema.git + rev: 0.33.2 + hooks: + - id: check-github-workflows + files: ^\.github/workflows/[^/]+$ + types: + - yaml + - id: check-jsonschema + name: Check GitHub Workflows set timeout-minutes + args: + - --builtin-schema + - github-workflows-require-timeout + files: ^\.github/workflows/[^/]+$ + types: + - yaml + - id: check-readthedocs + ...