Skip to content

Commit

Permalink
Replace tox with tox-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 26, 2024
1 parent d46a043 commit 9b840fe
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
lint:

runs-on: ubuntu-latest

Expand All @@ -22,33 +22,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: pre-commit cache
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
lint-pre-commit-
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: "setup.py"

- name: Build system information
run: python3 .github/workflows/system-info.py

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

- name: Lint
run: tox -e lint
run: uvx --with tox-uv tox -e lint
env:
PRE_COMMIT_COLOR: always

- name: Mypy
run: tox -e mypy
run: uvx --with tox-uv tox -e mypy

0 comments on commit 9b840fe

Please sign in to comment.