Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.python-version }} / ${{ matrix.pip-version }}
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 9
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -183,6 +184,7 @@ jobs:
pypy:
name: ${{ matrix.os }} / ${{ matrix.python-version }} / ${{ matrix.pip-version }}
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 9
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -287,6 +289,8 @@ jobs:

runs-on: ubuntu-latest

timeout-minutes: 1

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@afee1c1eac2a506084c274e9c02c8e0687b48d9e
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reusable-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
qa:
name: ${{ matrix.toxenv }}
runs-on: ubuntu-latest
timeout-minutes: 2 # network is slow sometimes
strategy:
fail-fast: false
matrix:
Expand Down
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ repos:
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/python-jsonschema/check-jsonschema.git
rev: 0.31.1
hooks:
- id: check-github-actions
- id: check-github-workflows
- id: check-jsonschema
alias: enforce-gha-timeouts
name: Check GitHub Workflows set timeout-minutes
args:
- --builtin-schema
- github-workflows-require-timeout
files: ^\.github/workflows/[^/]+$
types:
- yaml
# - id: check-readthedocs # FIXME: demands non-empty `build.tools`

- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/2273.contrib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The linting is now set up to perform structured GitHub Actions
workflows and actions checks against json schemas
-- by :user:`webknjaz`.
Loading