Skip to content

Commit c4a5971

Browse files
committed
Fix ci/cd
1 parent 7eb1de4 commit c4a5971

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/update-and-build.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
1112
update-translation:
1213
runs-on: ubuntu-latest
1314
strategy:
@@ -21,7 +22,6 @@ jobs:
2122
- uses: actions/setup-python@master
2223
with:
2324
python-version: 3
24-
- run: sudo apt-get install -y gettext
2525
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
2626
working-directory: /usr/local/bin
2727
- run: pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
@@ -42,22 +42,34 @@ jobs:
4242
with:
4343
branch: ${{ matrix.version }}
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
- uses: peter-evans/repository-dispatch@main
45+
46+
lint-translation:
47+
runs-on: ubuntu-latest
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
52+
needs: [ 'update-translation' ]
53+
continue-on-error: true
54+
steps:
55+
- uses: actions/setup-python@master
4656
with:
4757
python-version: 3
58+
- run: pip install sphinx-lint
4859
- uses: actions/checkout@master
4960
with:
5061
ref: ${{ matrix.version }}
5162
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
5263
- run: sphinx-lint
64+
5365
build-translation:
5466
runs-on: ubuntu-latest
5567
strategy:
5668
fail-fast: false
5769
matrix:
5870
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
5971
format: [html, latex]
60-
needs: ['update-translation']
72+
needs: ['lint-translation']
6173
steps:
6274
- uses: actions/setup-python@master
6375
with:
@@ -81,6 +93,7 @@ jobs:
8193
with:
8294
name: build-${{ matrix.version }}-${{ matrix.format }}
8395
path: Doc/build/${{ matrix.format }}
96+
8497
output-pdf:
8598
runs-on: ubuntu-latest
8699
strategy:

0 commit comments

Comments
 (0)