From f6324695dc4cb9f6a3283e65372f82c81b72a54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Wed, 17 Apr 2024 17:07:06 -0600 Subject: [PATCH] ci: Use uv in CI --- .github/workflows/test.yml | 12 +++--------- noxfile.py | 1 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b7d51287..451e1e3a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,8 +74,6 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - cache: 'pip' - cache-dependency-path: 'poetry.lock' - name: Upgrade pip env: @@ -88,7 +86,7 @@ jobs: env: PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | - pipx install nox + pipx install 'nox[uv]' pipx inject nox nox-poetry nox --version @@ -138,8 +136,6 @@ jobs: with: python-version: ${{ env.NOXPYTHON }} architecture: x64 - cache: 'pip' - cache-dependency-path: 'poetry.lock' - name: Upgrade pip env: @@ -152,7 +148,7 @@ jobs: env: PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | - pipx install nox + pipx install 'nox[uv]' pipx inject nox nox-poetry nox --version @@ -181,8 +177,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.12' - cache: 'pip' - cache-dependency-path: 'poetry.lock' - name: Upgrade pip env: @@ -200,7 +194,7 @@ jobs: env: PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | - pipx install nox + pipx install 'nox[uv]' pipx inject nox nox-poetry nox --version diff --git a/noxfile.py b/noxfile.py index 86a82ce5c..b7730b43f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -21,6 +21,7 @@ raise SystemExit(dedent(message)) from None nox.needs_version = ">=2024.4.15" +nox.options.default_venv_backend = "uv|virtualenv" RUFF_OVERRIDES = """\ extend = "./pyproject.toml"