Skip to content

Commit 41a0b2f

Browse files
committed
fix rst lint job
1 parent 5c5b064 commit 41a0b2f

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/pyhton.generate-wrapper.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,21 @@ jobs:
2828
with:
2929
name: swig-sources
3030
path: python-wrapper/swig/**
31-
if-no-files-found: error
31+
if-no-files-found: error
32+
check_readme_rst_syntax:
33+
runs-on: "ubuntu-22.04"
34+
defaults:
35+
run:
36+
working-directory: ./python-wrapper
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-python@v5
40+
with:
41+
python-version: 3.8
42+
- name: install rst linter
43+
run: pip install restructuredtext-lint pygments
44+
- name: run
45+
run: rst-lint *.rst
3246
build:
3347
continue-on-error: true
3448
strategy:
@@ -95,21 +109,9 @@ jobs:
95109
name: source_dist
96110
path: python-wrapper/dist/**
97111
if-no-files-found: error
98-
check_rst_syntax:
99-
runs-on: "ubuntu-22.04"
100-
steps:
101-
- uses: actions/checkout@v4
102-
- uses: actions/setup-python@v5
103-
with:
104-
python-version: 3.8
105-
- name: install rst linter
106-
run: pip install restructuredtext-lint pygments
107-
- name: run
108-
run: |
109-
cd docs
110-
rst-lint *.rst
111112
build_pages:
112113
runs-on: "ubuntu-22.04"
114+
needs: generate-wrapper
113115
defaults:
114116
run:
115117
working-directory: ./python-wrapper

0 commit comments

Comments
 (0)