diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 21b9442..bd89106 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,13 +4,12 @@ on: [push, pull_request, workflow_dispatch] env: FORCE_COLOR: 1 - PIP_DISABLE_PIP_VERSION_CHECK: 1 permissions: contents: read jobs: - pre-commit: + lint: runs-on: ubuntu-latest steps: @@ -20,8 +19,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.x" - cache: pip - - uses: pre-commit/action@v3.0.1 + - uses: tox-dev/action-pre-commit-uv@v1 mypy: runs-on: ubuntu-latest @@ -33,8 +31,7 @@ jobs: - 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8519af..a2548a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,6 @@ permissions: env: FORCE_COLOR: 1 - PIP_DISABLE_PIP_VERSION_CHECK: 1 jobs: test: @@ -32,18 +31,14 @@ jobs: - name: Install uv uses: hynek/setup-cached-uv@v2 - - name: Install dependencies - run: | - uv pip install --system -U tox-uv - - name: Tox tests run: | - tox -e py + uvx --with tox-uv tox -e py - name: Cog if: matrix.python-version == '3.11' && 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