Skip to content

Commit bc43e63

Browse files
authored
use uv to set up test environment (#259)
1 parent beb331e commit bc43e63

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,39 @@ jobs:
1515
config:
1616
- { os: ubuntu-latest, py: 3.9 }
1717
- { os: ubuntu-latest, py: "3.10" }
18-
- { os: ubuntu-latest, py: "3.11", doc: 1, whl: 1 }
19-
- { os: ubuntu-latest, py: "3.12" }
18+
- { os: ubuntu-latest, py: "3.11" }
19+
- { os: ubuntu-latest, py: "3.12", doc: 1 , whl: 1 }
2020
- { os: windows-latest, py: "3.12", whl: 1 }
2121
- { os: macos-latest, py: "3.12" }
2222

2323
# pure python wheels
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v5
30+
2731
- name: Set up Python ${{ matrix.config.py }}
2832
uses: actions/setup-python@v5
2933
with:
3034
python-version: ${{ matrix.config.py }}
3135

32-
- name: Install Python dependencies
36+
- name: Install the project
3337
run: |
34-
python -m pip install --upgrade pip
35-
python -m pip install .[dev,webview] build setuptools wheel
36-
python -m build
38+
uv sync --extra dev --extra webview --dev
39+
uv build
3740
3841
- name: Run tests
3942
run: |
40-
pytest -v
41-
python check_examples.py --chisq
43+
uv run python -m pytest -v
44+
uv run python check_examples.py --chisq
45+
shell: bash
4246
env:
4347
MPLBACKEND: agg
4448

4549
- name: Check that the docs build (linux only)
4650
if: matrix.config.doc == 1
4751
run: |
48-
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html
52+
source .venv/bin/activate
53+
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html

0 commit comments

Comments
 (0)