Skip to content

Commit 7466e0e

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

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: .github/workflows/update-and-build.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ on:
55
- cron: '0 6 * * *'
66
push:
77
branches: ['main']
8+
pull_request:
9+
branches: ['main']
810
workflow_dispatch:
911

1012
jobs:
13+
1114
update-translation:
1215
runs-on: ubuntu-latest
1316
strategy:
@@ -21,7 +24,6 @@ jobs:
2124
- uses: actions/setup-python@master
2225
with:
2326
python-version: 3
24-
- run: sudo apt-get install -y gettext
2527
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
2628
working-directory: /usr/local/bin
2729
- run: pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
@@ -42,14 +44,26 @@ jobs:
4244
with:
4345
branch: ${{ matrix.version }}
4446
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
- uses: peter-evans/repository-dispatch@main
47+
48+
lint-translation:
49+
runs-on: ubuntu-latest
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
54+
needs: [ 'update-translation' ]
55+
continue-on-error: true
56+
steps:
57+
- uses: actions/setup-python@master
4658
with:
4759
python-version: 3
60+
- run: pip install sphinx-lint
4861
- uses: actions/checkout@master
4962
with:
5063
ref: ${{ matrix.version }}
5164
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
5265
- run: sphinx-lint
66+
5367
build-translation:
5468
runs-on: ubuntu-latest
5569
strategy:
@@ -81,6 +95,7 @@ jobs:
8195
with:
8296
name: build-${{ matrix.version }}-${{ matrix.format }}
8397
path: Doc/build/${{ matrix.format }}
98+
8499
output-pdf:
85100
runs-on: ubuntu-latest
86101
strategy:

0 commit comments

Comments
 (0)