Skip to content

Commit 46409a8

Browse files
committed
Switch to uv for project management
1 parent b055785 commit 46409a8

File tree

5 files changed

+459
-551
lines changed

5 files changed

+459
-551
lines changed

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/main.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,25 @@ jobs:
4949
ignore-typecheck-outcome: false
5050
ignore-test-outcome: true
5151

52-
5352
steps:
5453
- uses: actions/checkout@v3
5554

55+
- name: Install uv
56+
uses: astral-sh/setup-uv@v5
57+
with:
58+
# Install a specific version of uv.
59+
version: "0.6.2"
60+
enable-cache: 'true'
61+
5662
- name: Set up Python ${{ matrix.python-version }}
5763
uses: actions/setup-python@v4
5864
id: setup-python
5965
with:
6066
python-version: ${{ matrix.python-version }}
6167

62-
- name: Install poetry
63-
run: |
64-
python -m pip install poetry==1.3.1
65-
66-
- name: Configure poetry
67-
run: |
68-
python -m poetry config virtualenvs.in-project true
69-
70-
- name: Cache the virtualenv
71-
id: poetry-dependencies-cache
72-
uses: actions/cache@v3
73-
with:
74-
path: ./.venv
75-
key: ${{ runner.os }}-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
76-
7768
- name: Install dev dependencies
78-
if: steps.poetry-dependencies-cache.outputs.cache-hit != 'true'
7969
run: |
80-
python -m poetry install --only=dev
70+
uv sync --group dev
8171
8272
- name: Type checking
8373
# Ignore errors for older pythons

0 commit comments

Comments
 (0)