Skip to content

Commit 0198938

Browse files
Use UV
1 parent cec19f1 commit 0198938

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020

21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
23+
2124
- name: Setup Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: '3.11'
25+
run: uv python install 3.11
2526

2627
- name: Install dependencies
27-
run: |
28-
pip install -e .
29-
pip install pytest
28+
run: uv pip install --system -e ".[dev]"
3029

3130
- name: Run tests
32-
run: pytest tests/test_models.py -v
31+
run: uv run pytest tests/test_models.py -v
3332

3433
deploy:
3534
name: Deploy

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
1821
- name: Setup Python
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: '3.11'
22+
run: uv python install 3.11
2223

2324
- name: Install dependencies
24-
run: |
25-
pip install -e .
26-
pip install pytest
25+
run: uv pip install --system -e ".[dev]"
2726

2827
- name: Run tests
29-
run: pytest tests/test_models.py -v
28+
run: uv run pytest tests/test_models.py -v

0 commit comments

Comments
 (0)