Skip to content

Commit

Permalink
Run tox with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 16, 2024
1 parent bdf5c9e commit 855c19b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- name: Install dependencies
run: |
python3 -m pip install -U tox
- name: Install uv
uses: hynek/setup-cached-uv@v2
- name: Mypy
run: tox -e mypy
run: uvx --with tox-uv tox -e mypy
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ permissions:

env:
FORCE_COLOR: 1
PIP_DISABLE_PIP_VERSION_CHECK: 1

jobs:
test:
Expand All @@ -26,25 +25,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U tox
- name: Install uv
uses: hynek/setup-cached-uv@v2

- name: Tox tests
run: |
tox -e py
uvx --with tox-uv tox -e py
- name: Test CLI
run: |
tox -e cli
uvx --with tox-uv tox -e cli
- name: Cog
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
run: |
tox -e cog
uvx --with tox-uv tox -e cog
- name: Upload coverage
uses: codecov/codecov-action@v3.1.5
Expand Down

0 comments on commit 855c19b

Please sign in to comment.