File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 21
21
trial : ${{ !startsWith(github.ref, 'refs/pull/') || steps.filter.outputs.trial }}
22
22
integration : ${{ !startsWith(github.ref, 'refs/pull/') || steps.filter.outputs.integration }}
23
23
linting : ${{ !startsWith(github.ref, 'refs/pull/') || steps.filter.outputs.linting }}
24
+ linting_readme : ${{ !startsWith(github.ref, 'refs/pull/') || steps.filter.outputs.linting_readme }}
24
25
steps :
25
26
- uses : dorny/paths-filter@v3
26
27
id : filter
72
73
- 'pyproject.toml'
73
74
- 'poetry.lock'
74
75
- '.github/workflows/tests.yml'
76
+
77
+ linting_readme:
78
+ - 'README.rst'
75
79
76
80
check-sampleconfig :
77
81
runs-on : ubuntu-latest
@@ -269,6 +273,20 @@ jobs:
269
273
270
274
- run : cargo fmt --check
271
275
276
+ # This is to detect issues with the rst file, which can otherwise cause issues
277
+ # when uploading packages to PyPi.
278
+ lint-readme :
279
+ runs-on : ubuntu-latest
280
+ needs : changes
281
+ if : ${{ needs.changes.outputs.linting_readme == 'true' }}
282
+ steps :
283
+ - uses : actions/checkout@v4
284
+ - uses : actions/setup-python@v5
285
+ with :
286
+ python-version : " 3.x"
287
+ - run : " pip install rstcheck"
288
+ - run : " rstcheck --report-level=WARNING README.rst"
289
+
272
290
# Dummy step to gate other tests on without repeating the whole list
273
291
linting-done :
274
292
if : ${{ !cancelled() }} # Run this even if prior jobs were skipped
@@ -284,6 +302,7 @@ jobs:
284
302
- lint-clippy
285
303
- lint-clippy-nightly
286
304
- lint-rustfmt
305
+ - lint-readme
287
306
runs-on : ubuntu-latest
288
307
steps :
289
308
- uses : matrix-org/done-action@v2
@@ -301,6 +320,7 @@ jobs:
301
320
lint-clippy
302
321
lint-clippy-nightly
303
322
lint-rustfmt
323
+ lint-readme
304
324
305
325
306
326
calculate-test-jobs :
Original file line number Diff line number Diff line change
1
+ Add CI check for the README.
You can’t perform that action at this time.
0 commit comments