Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add packaging-tests action
  • Loading branch information
T4rk1n committed Jun 20, 2025
commit dc354695dc83f436f57fd4b0902869c5c196aaec
25 changes: 16 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ jobs:
with:
enable-cache: true

- name: Install build dependencies
- name: Create virtual environment and install dependencies
run: |
uv venv .venv --python 3.12
source .venv/bin/activate
uv sync --extra dev --extra ci --extra build
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH

- name: Build Dash
run: npm run build
Expand Down Expand Up @@ -147,7 +151,7 @@ jobs:
- name: Run typing tests
run: |
cd tests
pytest compliance/test_typing.py
uv run pytest compliance/test_typing.py

background-callbacks:
name: Run Background & Async Callback Tests (Python ${{ matrix.python-version }})
Expand Down Expand Up @@ -449,7 +453,7 @@ jobs:
- name: Run Table Server Tests
run: |
cd components/dash-table
pytest --nopercyfinalize --headless --splits 3 --group ${{ matrix.test-group }}
uv run pytest --nopercyfinalize --headless --splits 3 --group ${{ matrix.test-group }}

packaging-tests:
name: Package Build Tests
Expand All @@ -469,7 +473,8 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: 'pip'

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -482,11 +487,13 @@ jobs:
with:
enable-cache: true

- name: Install build dependencies
- name: Create virtual environment and install dependencies
run: |
uv sync --extra build --extra dev
uv pip install pytest

uv venv .venv --python 3.12
source .venv/bin/activate
uv sync --extra build --extra dev --extra ci --extra testing
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Install JavaScript dependencies
run: npm ci

Expand All @@ -495,7 +502,7 @@ jobs:

- name: Run packaging tests
run: |
pytest tests/test_build/ -v --tb=short
uv run pytest tests/test_build/ -v --tb=short

- name: Test wheel installation with extras
run: |
Expand Down
Loading