Skip to content

Commit b23af45

Browse files
committed
Use uv run again
1 parent 0269bf7 commit b23af45

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- main
1010

1111
env:
12-
UV_SYSTEM_PYTHON: 1
1312
NPY_PROMOTION_STATE: weak_and_warn
1413

1514
jobs:
@@ -20,6 +19,7 @@ jobs:
2019
matrix:
2120
os: [windows-latest, ubuntu-latest, macos-latest]
2221
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
22+
numpy: ["numpy"]
2323
include:
2424
- os: ubuntu-latest
2525
python-version: "3.9"
@@ -28,22 +28,15 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: astral-sh/setup-uv@v3
31-
- uses: actions/setup-python@v5
32-
with:
33-
python-version: ${{ matrix.python-version }}
31+
- name: Install Python ${{ matrix.python-version }}
32+
run: uv python install ${{ matrix.python-version }}
3433
- name: Install libsndfile
3534
if: startsWith(matrix.os, 'ubuntu')
36-
run: |
37-
sudo apt-get install -y libsndfile1
38-
- name: Install dependencies
39-
run: |
40-
uv pip install ".[dev]"
41-
- if: ${{ matrix.numpy }}
42-
run: uv pip install ${{ matrix.numpy }}
35+
run: sudo apt-get install -y libsndfile1
4336
- name: Run tests
44-
run: pytest
37+
run: uv run --with ${{ matrix.numpy }} --extra dev pytest
4538
- name: Check style
46-
run: black --check --diff .
39+
run: uv run --extra dev black --check --diff .
4740

4841
test-deb10-i386:
4942
name: Python 3.7 on Debian 10 i386

0 commit comments

Comments
 (0)