From 9b840fee4c8ece36cb525c5ec5406ba29697942c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 26 Oct 2024 13:30:04 +0300 Subject: [PATCH] Replace tox with tox-uv --- .github/workflows/lint.yml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cc4760288e5..36974f185ff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true jobs: - build: + lint: runs-on: ubuntu-latest @@ -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