File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 37
37
38
38
- uses : astral-sh/ruff-action@84f83ecf9e1e15d26b7984c7ec9cf73d39ffc946 # v3.3.1
39
39
40
+ - name : " Set up Python"
41
+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
42
+ with :
43
+ python-version : " 3.13"
44
+
45
+ - name : " Install dependencies"
46
+ run : |
47
+ python -m pip install -r requirements.pip
48
+
49
+ - name : " Check the docs are up-to-date"
50
+ run : |
51
+ make lintdoc
52
+
40
53
tests :
41
54
name : " Python ${{ matrix.python }} on ${{ matrix.os }}"
42
55
runs-on : " ${{ matrix.os }}-${{ matrix.os-version || 'latest' }}"
Original file line number Diff line number Diff line change @@ -28,19 +28,28 @@ test: ## Run the test suite.
28
28
29
29
# Docs
30
30
31
- .PHONY : cogdoc dochtml
31
+ .PHONY : cogdoc lintdoc dochtml
32
+
33
+ # Normally I'd put this in a comment in index.px, but the
34
+ # quoting/escaping would be impossible.
35
+ COGARGS = -cP --markers='{{{cog }}} {{{end}}}' docs/running.rst
32
36
33
37
cogdoc : # # Run cog to keep the docs correct.
34
- # Normally I'd put this in a comment in index.px, but the
35
- # quoting/escaping would be impossible.
36
- python -m cogapp -crP --markers=' {{{cog }}} {{{end}}}' docs/running.rst
38
+ python -m cogapp -r $(COGARGS )
39
+
40
+ lintdoc : # # Check that the docs are up-to-date.
41
+ @python -m cogapp --check --diff $(COGARGS ) ; \
42
+ if [ $$ ? -ne 0 ]; then \
43
+ echo ' Docs need to be updated: `make cogdoc`' ; \
44
+ exit 1; \
45
+ fi
37
46
38
47
dochtml : # # Build local docs.
39
48
$(MAKE ) -C docs html
40
49
41
50
# Release
42
51
43
- .PHONY : dist pypi testpypi check_release
52
+ .PHONY : dist pypi testpypi check_release _check_manifest
44
53
45
54
dist : # # Build distribution artifacts.
46
55
python -m build
You can’t perform that action at this time.
0 commit comments