-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,12 @@ jobs: | |
cache: pip | ||
- uses: pre-commit/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -U tox | ||
mypy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: hynek/setup-cached-uv@v2 | ||
- name: Mypy | ||
run: tox -e mypy | ||
run: uvx --with tox-uv tox -e mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Test | |
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
|
@@ -22,7 +25,6 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
cache: pip | ||
|
||
- name: Install Linux dependencies | ||
if: startsWith(matrix.os, 'ubuntu') | ||
|
@@ -34,19 +36,16 @@ jobs: | |
run: | | ||
brew install gettext | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U wheel | ||
python -m pip install -U tox | ||
- name: Install uv | ||
uses: hynek/setup-cached-uv@v2 | ||
|
||
- name: Generate translation binaries | ||
run: | | ||
scripts/generate-translation-binaries.sh | ||
- name: Tox tests | ||
run: | | ||
tox -e py | ||
uvx --with tox-uv tox -e py | ||
- name: Upload coverage | ||
uses: codecov/[email protected] | ||
|