Skip to content

Commit

Permalink
feat(ci): add matcher for setuptools warnigs
Browse files Browse the repository at this point in the history
This should collect errors seen in WeblateOrg#12778.
  • Loading branch information
nijel committed Oct 15, 2024
1 parent 260e78b commit b44929b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/matchers/setuptools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"problemMatcher": [
{
"owner": "setuptools",
"severity": "warning",
"pattern": [
{
"message": 1,
"regexp": "^[^:]*:\\d+: _Warning: (.*)$"
}
]
}
]
}
5 changes: 5 additions & 0 deletions .github/matchers/setuptools.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright © Michal Čihař <[email protected]>

SPDX-License-Identifier: CC0-1.0

This file is maintained in https://github.com/WeblateOrg/meta/
5 changes: 4 additions & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ jobs:
with:
python-version: '3.12'
- name: build
run: uv build
run: |
echo "::add-matcher::.github/matchers/setuptools.json"
uv build
echo "::remove-matcher owner=setuptools::"
- name: Sign the dists with Sigstore
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/weblate')
uses: sigstore/[email protected]
Expand Down

0 comments on commit b44929b

Please sign in to comment.