Skip to content

Commit af5c20e

Browse files
author
Benedikt Ehinger
committed
better uv install
1 parent bb0262b commit af5c20e

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/pytest.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,16 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616

17-
- name: Set up Python 3.12
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: 3.12
21-
22-
- name: Install uv (fast Python package installer)
23-
run: |
24-
curl -LsSf https://astral.sh/uv/install.sh | sh
25-
export PATH="$HOME/.local/bin:$PATH"
26-
echo "$PATH" >> $GITHUB_ENV
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
2719

20+
- name: Set up Python
21+
run: uv python install
22+
2823
- name: Install dependencies with uv
29-
run: |
30-
# Install project dependencies (from pyproject.toml)
31-
uv sync
24+
run: uv sync --locked --all-extras --dev
3225

3326
- name: Run tests with uv
34-
run: |
35-
uv run pytest
27+
run: uv run pytest

0 commit comments

Comments
 (0)