66 branches :
77 - master
88
9+ concurrency :
10+ # Cancel previous workflow run when a new commit is pushed to a feature branch
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
13+
914env :
1015 PYTHON_VERSION : 3.9
1116
@@ -19,16 +24,16 @@ jobs:
1924 changed_doc_files : ${{ steps.changed-doc-files.outputs.all_changed_files }}
2025 changed_python_files : ${{ steps.changed-python-files.outputs.all_changed_files }}
2126 steps :
22- - uses : actions/checkout@v4
27+ - uses : actions/checkout@v5
2328 - name : Get changed docs files
2429 id : changed-doc-files
25- uses : tj-actions/changed-files@v44
30+ uses : tj-actions/changed-files@v46
2631 with :
2732 files : |
2833 docs/**
2934 - name : Get changed python files
3035 id : raw-changed-python-files
31- uses : tj-actions/changed-files@v44
36+ uses : tj-actions/changed-files@v46
3237 with :
3338 files : |
3439 **.py
@@ -51,10 +56,10 @@ jobs:
5156 name : Check formatting
5257 needs : changed-files
5358 steps :
54- - uses : actions/checkout@v4
59+ - uses : actions/checkout@v5
5560 - name : Install Python tools
56- uses : BrandonLWhite/pipx-install-action@v0.1.1
57- - uses : actions/setup-python@v5
61+ uses : BrandonLWhite/pipx-install-action@v1.0.3
62+ - uses : actions/setup-python@v6
5863 with :
5964 python-version : ${{ env.PYTHON_VERSION }}
6065 cache : poetry
@@ -72,10 +77,10 @@ jobs:
7277 name : Check linting
7378 needs : changed-files
7479 steps :
75- - uses : actions/checkout@v4
80+ - uses : actions/checkout@v5
7681 - name : Install Python tools
77- uses : BrandonLWhite/pipx-install-action@v0.1.1
78- - uses : actions/setup-python@v5
82+ uses : BrandonLWhite/pipx-install-action@v1.0.3
83+ - uses : actions/setup-python@v6
7984 with :
8085 python-version : ${{ env.PYTHON_VERSION }}
8186 cache : poetry
@@ -92,10 +97,10 @@ jobs:
9297 name : Check types with mypy
9398 needs : changed-files
9499 steps :
95- - uses : actions/checkout@v4
100+ - uses : actions/checkout@v5
96101 - name : Install Python tools
97- uses : BrandonLWhite/pipx-install-action@v0.1.1
98- - uses : actions/setup-python@v5
102+ uses : BrandonLWhite/pipx-install-action@v1.0.3
103+ - uses : actions/setup-python@v6
99104 with :
100105 python-version : ${{ env.PYTHON_VERSION }}
101106 cache : poetry
@@ -105,33 +110,37 @@ jobs:
105110
106111 - name : Type check code
107112 uses : liskin/gh-problem-matcher-wrap@v3
108- continue-on-error : true
109113 with :
110114 linters : mypy
111- run : poe check-types --show-column-numbers --no-error-summary ${{ needs.changed-files.outputs.changed_python_files }}
115+ run : poe check-types --show-column-numbers --no-error-summary .
112116
113117 docs :
114118 if : needs.changed-files.outputs.any_docs_changed == 'true'
115119 runs-on : ubuntu-latest
116120 name : Check docs
117121 needs : changed-files
118122 steps :
119- - uses : actions/checkout@v4
123+ - uses : actions/checkout@v5
120124 - name : Install Python tools
121- uses : BrandonLWhite/pipx-install-action@v0.1.1
122- - uses : actions/setup-python@v5
125+ uses : BrandonLWhite/pipx-install-action@v1.0.3
126+ - uses : actions/setup-python@v6
123127 with :
124128 python-version : ${{ env.PYTHON_VERSION }}
125129 cache : poetry
126130
127131 - name : Install dependencies
128132 run : poetry install --extras=docs
129133
130- - name : Add Sphinx problem matcher
131- run : echo "::add-matcher::.github/sphinx-problem-matcher.json"
134+ - name : Add Sphinx problem matchers
135+ run : |
136+ echo "::add-matcher::.github/problem-matchers/sphinx-build.json"
137+ echo "::add-matcher::.github/problem-matchers/sphinx-lint.json"
138+
139+ - name : Check docs formatting
140+ run : poe format-docs --check
141+
142+ - name : Lint docs
143+ run : poe lint-docs
132144
133145 - name : Build docs
134- run : |-
135- poe docs |& tee /tmp/output
136- # fail the job if there are issues
137- grep -q " WARNING:" /tmp/output && exit 1 || exit 0
146+ run : poe docs -- -e 'SPHINXOPTS=--fail-on-warning --keep-going'
0 commit comments