Skip to content

Commit 99beaa9

Browse files
committed
Add problem matcher for test-translations.yml
1 parent 0b7879f commit 99beaa9

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/sphinx_lint_matcher.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sphinx-lint-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*):(\\d+):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"message": 3
11+
}
12+
]
13+
}
14+
]
15+
}

.github/workflows/test-translations.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,21 @@ jobs:
5858
ref: ${{ env.I18N_BRANCH }}
5959

6060
- name: Set up Python
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@v5
6262
with:
6363
python-version: >-
6464
3.10
6565
6666
- name: Install Python tooling
6767
run: python -m pip install --upgrade nox virtualenv sphinx-lint
6868

69+
- name: Set Sphinx problem matcher
70+
uses: sphinx-doc/github-problem-matcher@master
71+
6972
- name: Build translated docs in ${{ matrix.language }}
7073
run: nox -s build -- -q -D language=${{ matrix.language }}
7174

7275
- name: Lint translation file
73-
run: sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po
76+
run: |
77+
echo '::add-matcher::.github/sphinx_lint_matcher.json'
78+
sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po

0 commit comments

Comments
 (0)