Skip to content

Commit 3b3ebc6

Browse files
Aadi JainAadi Jain
authored andcommitted
ci: use isolated uv virtualenv for running tests in GitHub Actions
1 parent fc582e0 commit 3b3ebc6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ jobs:
3333
python-version: "3.11"
3434
- name: Set up uv
3535
uses: astral-sh/setup-uv@v5
36-
- name: Install lightweight test dependencies
37-
run: |
38-
uv pip install --system pytest polars numpy scipy scikit-learn pyyaml duckdb spacy
39-
uv pip install --system https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
36+
with:
37+
enable-cache: true
4038
- name: Run Tests
4139
run: |
40+
uv venv
41+
source .venv/bin/activate
42+
uv pip install pytest polars numpy scipy scikit-learn pyyaml duckdb spacy
43+
uv pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
4244
python -m pytest tests/ -v --ignore=tests/test_audio_utils.py
4345
46+

0 commit comments

Comments
 (0)