Skip to content

Commit 507e23a

Browse files
committed
fix CI pipeline
1 parent 82a512a commit 507e23a

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/unit_tests.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,15 @@ jobs:
2525
- name: Checkout code
2626
uses: actions/checkout@v4
2727

28-
- name: Set up Python
29-
uses: actions/setup-python@v5
28+
- name: Install uv and set the python version
29+
uses: astral-sh/setup-uv@v5
3030
with:
31-
cache: 'pip'
32-
cache-dependency-path: '**/pyproject.toml'
3331
python-version: "3.12"
32+
enable-cache: true
33+
cache-dependency-glob: "uv.lock"
3434

35-
- name: Install uv
36-
uses: astral-sh/setup-uv@v5
37-
38-
- name: Install dependencies with uv
39-
run: |
40-
uv sync
35+
- name: Install the project
36+
run: uv sync --locked --all-extras --dev
4137

4238
- name: Run tests
4339
run: uv run pytest tests
@@ -50,17 +46,15 @@ jobs:
5046
- name: Checkout code
5147
uses: actions/checkout@v4
5248

53-
- name: Set up Python
54-
uses: actions/setup-python@v5
49+
- name: Install uv and set the python version
50+
uses: astral-sh/setup-uv@v5
5551
with:
56-
cache: 'pip'
57-
cache-dependency-path: '**/pyproject.toml'
5852
python-version: "3.12"
53+
enable-cache: true
54+
cache-dependency-glob: "uv.lock"
5955

60-
- name: Install uv
61-
run: |
62-
curl -LsSf https://astral.sh/uv/install.sh | sh
63-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
56+
- name: Install the project
57+
run: uv sync --locked --all-extras --dev
6458

6559
- name: Run lint checks
6660
run: make lint

0 commit comments

Comments
 (0)