Skip to content

Commit

Permalink
Lint and test with tox-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 21, 2024
1 parent 073a00b commit 5b334bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test

on: [push, pull_request, workflow_dispatch]

permissions:
contents: read

env:
FORCE_COLOR: 1

Expand All @@ -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')
Expand All @@ -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]
Expand Down

0 comments on commit 5b334bb

Please sign in to comment.