Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
140 changes: 107 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
# runs-on: depot-ubuntu-24.04
strategy:
fail-fast: false
matrix:
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest]
#os: [ubuntu-latest]
os: [depot-ubuntu-latest, depot-windows-2025]
#os: [depot-ubuntu-latest, depot-windows-2025]
os: [depot-ubuntu-latest]
python-version: ["3.11"]
steps:
- name: Checkout
Expand Down Expand Up @@ -88,6 +88,7 @@ jobs:
path: |
./dist
./js/*.tgz
overwrite: true

- name: Run Storybook Playwright Tests
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down Expand Up @@ -119,33 +120,106 @@ jobs:
env:
UV_PYTHON: ${{ matrix.python-version }}


# ui-test:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: buckaroo-dist-${{ github.run_number }}

# - name: Install Python
# uses: actions/setup-python@v4
# with:
# python-version: 3.9

# - name: Setup buckaroo ui test
# run: pip install `echo dist/*.whl`[ui-test] -r requirements-ui-test.txt

# - name: Install playwright browsers
# run: playwright install chromium

# - name: Run ui-tests
# run: SOLARA_TEST_RUNNERS=jupyter_lab pytest tests/ui/ --video=retain-on-failure

# - name: Upload Test artifacts
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: buckaroo-test-results-${{ github.run_number }}
# path: test-results
PlaywrightJupyter:
name: Playwright Jupyter / ${{ matrix.python-version }}
needs: build
runs-on: depot-ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
prune-cache: false
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: buckaroo-dist-${{ github.run_number }}
- name: Extract static files from wheel
run: unzip -o dist/*.whl "buckaroo/static/*" -d .
- name: Create venv and install dependencies
run: |
uv venv .venv --python ${{ matrix.python-version }}
uv pip install --python .venv/bin/python dist/*.whl polars jupyterlab pandas
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.10.0
- name: Setup Node.js with pnpm cache
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache-dependency-path: 'packages/pnpm-lock.yaml'
- name: Install pnpm dependencies
working-directory: packages/buckaroo-js-core
run: pnpm install --frozen-lockfile
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('packages/pnpm-lock.yaml') }}
- name: Install Playwright browsers
working-directory: packages/buckaroo-js-core
run: pnpm exec playwright install chromium
- name: Run Playwright Jupyter tests
run: bash scripts/test_playwright_jupyter.sh --venv-location=.venv

PlaywrightJupyterMaxVersions:
name: Playwright Jupyter Max / ${{ matrix.python-version }}
needs: build
runs-on: depot-ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
prune-cache: false
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: buckaroo-dist-${{ github.run_number }}
- name: Extract static files from wheel
run: unzip -o dist/*.whl "buckaroo/static/*" -d .
- name: Create venv and install dependencies (max versions)
run: |
uv venv .venv --python ${{ matrix.python-version }}
uv pip install --python .venv/bin/python --resolution=highest dist/*.whl polars jupyterlab pandas
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.10.0
- name: Setup Node.js with pnpm cache
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache-dependency-path: 'packages/pnpm-lock.yaml'
- name: Install pnpm dependencies
working-directory: packages/buckaroo-js-core
run: pnpm install --frozen-lockfile
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('packages/pnpm-lock.yaml') }}
- name: Install Playwright browsers
working-directory: packages/buckaroo-js-core
run: pnpm exec playwright install chromium
- name: Run Playwright Jupyter tests
run: bash scripts/test_playwright_jupyter.sh --venv-location=.venv
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,32 +92,6 @@ jobs:
run: |
bash scripts/test_playwright_storybook.sh

# - name: Run JupyterLab Playwright Tests
# run: |
# # Ensure uv environment is set up
# uv sync --all-extras --group dev

# # Install the built buckaroo wheel
# uv pip install --force-reinstall dist/*.whl

# # Install test dependencies (polars, jupyterlab)
# uv pip install polars jupyterlab

# # Detect venv location (uv sync creates .venv by default, but check if it exists)
# if [ -d ".venv" ]; then
# VENV_LOCATION=".venv"
# else
# # Fallback: try to detect from uv's Python environment
# VENV_LOCATION=$(uv run python -c "import sys; print(sys.prefix)" 2>/dev/null || echo ".venv")
# fi

# # Run the integration test script with venv location
# bash scripts/test_playwright_jupyter.sh --venv-location="$VENV_LOCATION"
# env:
# UV_PYTHON: ${{ matrix.python-version }}



TestPythonMaxVersions:
name: Python / Test (Max Versions)
runs-on: depot-ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,3 @@ Have you had a good experience with this project? Why not share some love and co

We welcome [issue reports](../../issues); be sure to choose the proper issue template for your issue, so that we can be sure you're providing the necessary information.


Loading