7777 with :
7878 enable-cache : true
7979
80- - name : Install build dependencies
80+ - name : Create virtual environment and install dependencies
8181 run : |
82+ uv venv .venv --python 3.12
83+ source .venv/bin/activate
8284 uv sync --extra dev --extra ci --extra build
85+ echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
86+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
8387
8488 - name : Build Dash
8589 run : npm run build
@@ -147,7 +151,7 @@ jobs:
147151 - name : Run typing tests
148152 run : |
149153 cd tests
150- pytest compliance/test_typing.py
154+ uv run pytest compliance/test_typing.py
151155
152156 background-callbacks :
153157 name : Run Background & Async Callback Tests (Python ${{ matrix.python-version }})
@@ -449,7 +453,7 @@ jobs:
449453 - name : Run Table Server Tests
450454 run : |
451455 cd components/dash-table
452- pytest --nopercyfinalize --headless --splits 3 --group ${{ matrix.test-group }}
456+ uv run pytest --nopercyfinalize --headless --splits 3 --group ${{ matrix.test-group }}
453457
454458 packaging-tests :
455459 name : Package Build Tests
@@ -469,7 +473,8 @@ jobs:
469473 - name : Setup Python
470474 uses : actions/setup-python@v5
471475 with :
472- python-version : ' 3.11'
476+ python-version : ' 3.12'
477+ cache : ' pip'
473478
474479 - name : Setup Node.js
475480 uses : actions/setup-node@v4
@@ -482,11 +487,13 @@ jobs:
482487 with :
483488 enable-cache : true
484489
485- - name : Install build dependencies
490+ - name : Create virtual environment and install dependencies
486491 run : |
487- uv sync --extra build --extra dev
488- uv pip install pytest
489-
492+ uv venv .venv --python 3.12
493+ source .venv/bin/activate
494+ uv sync --extra build --extra dev --extra ci --extra testing
495+ echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
496+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
490497 - name : Install JavaScript dependencies
491498 run : npm ci
492499
@@ -495,7 +502,7 @@ jobs:
495502
496503 - name : Run packaging tests
497504 run : |
498- pytest tests/test_build/ -v --tb=short
505+ uv run pytest tests/test_build/ -v --tb=short
499506
500507 - name : Test wheel installation with extras
501508 run : |
0 commit comments