Skip to content

Commit a2905e9

Browse files
committed
Use Astral uv
1 parent 60ff4d5 commit a2905e9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Diff for: .github/workflows/build.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: astral-sh/setup-uv@v4
14+
with:
15+
enable-cache: true
16+
cache-dependency-glob: uv.lock
1417
- uses: actions/setup-python@v5
1518
with:
1619
python-version: 3.13
1720
allow-prereleases: true
18-
- uses: actions/cache@v4
19-
with:
20-
path: ~/.cache/pip
21-
key: ${{ runner.os }}-uv-pip-${{ hashFiles('pyprojecct.toml') }}
22-
- name: Install dependencies
23-
run: |
24-
uv pip install pytest-cov
25-
uv pip install --editable .
21+
- run: uv sync --dev
2622
- name: Run tests
2723
# TODO: #8818 Re-enable quantum tests
28-
run: uv tool run pytest
24+
run: uv run pytest
2925
--ignore=computer_vision/cnn_classification.py
3026
--ignore=docs/conf.py
3127
--ignore=dynamic_programming/k_means_clustering_tensorflow.py

0 commit comments

Comments
 (0)