File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -129,3 +129,22 @@ jobs:
129129 #
130130 # - name: Run linters
131131 # run: tox -e lint
132+
133+ check-readme :
134+ name : Check README
135+ runs-on : ubuntu-latest
136+
137+ steps :
138+ - uses : actions/checkout@v4
139+
140+ - name : Set up Python
141+ uses : actions/setup-python@v5
142+ with :
143+ python-version : 3.x
144+
145+ - name : Install dependencies
146+ run : python -m pip install --upgrade tox tox-gh-actions
147+
148+ - name : Run README check
149+ run : tox -e check-readme
150+
Original file line number Diff line number Diff line change @@ -139,3 +139,11 @@ exclude_lines =
139139 raise NotImplementedError
140140 # Don't complain if non-runnable code isn't run:
141141 if __name__ == .__main__.:
142+
143+ [testenv:check-readme]
144+ # Check the README.rst file for common issues.
145+ # The pypa publishing job fails if this fails.
146+ deps =
147+ rstcheck
148+ commands =
149+ rstcheck {toxinidir}/README.rst
You can’t perform that action at this time.
0 commit comments