File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test translations
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ paths :
7+ - ' **.po'
8+ branches :
9+ - translation/source
10+ push :
11+ paths :
12+ - ' **.po'
13+ branches :
14+ - translation/source
15+
16+ permissions :
17+ contents : read
18+
19+ concurrency :
20+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
21+ cancel-in-progress : true
22+
23+ env :
24+ I18N_BRANCH : translation/source
25+
26+ jobs :
27+ matrix :
28+ runs-on : ubuntu-latest
29+ outputs :
30+ languages : ${{ steps.languages.outputs.languages }}
31+
32+ steps :
33+ - name : Grab the repo src
34+ uses : actions/checkout@v4
35+ with :
36+ ref : ${{ env.I18N_BRANCH }}
37+
38+ - name : List languages
39+ id : languages
40+ working-directory : locales
41+ run : |
42+ dirs=$(find * -maxdepth 0 -type d)
43+ list="$(echo $dirs | sed "s|^|['|;s|$|']|;s| |', '|g")"
44+ echo "languages=$list" >> $GITHUB_OUTPUT
45+
46+
47+ test-translation :
48+ runs-on : ubuntu-latest
49+ needs : matrix
50+ strategy :
51+ fail-fast : false
52+ matrix :
53+ language : ${{fromJson(needs.matrix.outputs.languages)}}
54+
55+ steps :
56+ - name : Grab the repo src
57+ uses : actions/checkout@v4
58+ with :
59+ ref : ${{ env.I18N_BRANCH }}
60+
61+ - name : Set up Python
62+ uses : actions/setup-python@v4
63+ with :
64+ python-version : >-
65+ 3.10
66+
67+ - name : Install Python tooling
68+ run : python -m pip install --upgrade nox virtualenv
69+
70+ - name : Build translated docs in ${{ matrix.language }}
71+ run : nox -s build -- -D language=${{ matrix.language }}
You can’t perform that action at this time.
0 commit comments