Skip to content

Commit

Permalink
ci: use uv (#189)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Mar 28, 2024
1 parent 0351caa commit 2d4f05b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Setup uv
uses: yezz123/setup-uv@v4
with:
uv-venv: ".venv"

- name: Install package
run: python -m pip install .[test,cli]
run: uv pip install .[test,cli]

- name: Test package
run: python -m pytest -ra
Expand All @@ -80,6 +85,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup uv
uses: yezz123/setup-uv@v4

- uses: wntrblm/[email protected]
with:
python-versions: "3.11"
Expand Down
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

DIR = Path(__file__).parent.resolve()

nox.needs_version = ">=2024.3.2"
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.sessions = ["lint", "pylint", "tests"]


Expand Down

0 comments on commit 2d4f05b

Please sign in to comment.