Skip to content

Commit

Permalink
ci: Use uv in CI (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Apr 24, 2024
1 parent 72350c3 commit bd89373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'
cache-dependency-path: 'poetry.lock'

- name: Upgrade pip
env:
Expand All @@ -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
Expand Down Expand Up @@ -138,8 +136,6 @@ jobs:
with:
python-version: ${{ env.NOXPYTHON }}
architecture: x64
cache: 'pip'
cache-dependency-path: 'poetry.lock'

- name: Upgrade pip
env:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bd89373

Please sign in to comment.