8000 Add translation tests to tests.yml · AA-Turner/python-docs-theme@6b6f0d2 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b6f0d2

Browse files
committed
Add translation tests to tests.yml
1 parent 66820a5 commit 6b6f0d2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,36 @@ jobs:
4848
with:
4949
name: doc-html-${{ matrix.branch }}
5050
path: www/
51+
52+
translations:
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
os: ["ubuntu-latest", "windows-latest"]
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: actions/setup-python@v5
61+
with:
62+
python-version: 3
63+
allow-prereleases: true
64+
cache: pip
65+
- name: Install dependencies
66+
run: |
67+
pip install -U pip setuptools
68+
pip install Babel jinja2
69+
- run: python3 babel_runner.py extract
70+
- run: python3 babel_runner.py init -l pt_BR
71+
- run: python3 babel_runner.py update
72+
- run: python3 babel_runner.py update -l pt_BR
73+
- run: python3 babel_runner.py compile
74+
- run: python3 babel_runner.py compile -l pt_BR
75+
- name: Print .pot file
76+
shell: bash
77+
run: cat locales/messages.pot
78+
- name: Print .po file
79+
shell: bash
80+
run: cat locales/pt_BR/LC_MESSAGES/messages.po
81+
- name: list files in locales dir
82+
shell: bash
83+
run: ls -R locales/

0 commit comments

Comments
 (0)
0