Skip to content
Merged
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
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defaults:

jobs:
build-bokehjs:
name: Build bokehjs npm package
runs-on: ubuntu-24.04

steps:
Expand Down Expand Up @@ -49,3 +50,31 @@ jobs:
name: bokehjs-artifact
path: bokeh/bokehjs/bokeh-bokehjs-*
if-no-files-found: error

test:
name: Create and test examples
needs: build-bokehjs
runs-on: ubuntu-24.04

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Setup micromamba for node
uses: mamba-org/setup-micromamba@v2
with:
environment-name: node-env
create-args: >-
nodejs=22
init-shell: bash
cache-environment: true

- name: Unpack bokehjs artifact
uses: actions/download-artifact@v4
with:
name: bokehjs-artifact

- name:
working-directory: ci
run: |
bash prepare_playwright.sh
5 changes: 4 additions & 1 deletion ci/prepare_playwright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ rm temp.json
# 5. Copy tests into temp example directory
cp -r ../../../tests .

# Run tests
# 6. Install playwright browser
npx playwright install chromium

# 7. Run tests
npm run test