Skip to content

Commit df99469

Browse files
authored
Create and test examples in GHA (#22)
* Create and test examples in GHA * Fix yaml * Playwright browser install command
1 parent 8f62873 commit df99469

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defaults:
2121

2222
jobs:
2323
build-bokehjs:
24+
name: Build bokehjs npm package
2425
runs-on: ubuntu-24.04
2526

2627
steps:
@@ -49,3 +50,31 @@ jobs:
4950
name: bokehjs-artifact
5051
path: bokeh/bokehjs/bokeh-bokehjs-*
5152
if-no-files-found: error
53+
54+
test:
55+
name: Create and test examples
56+
needs: build-bokehjs
57+
runs-on: ubuntu-24.04
58+
59+
steps:
60+
- name: Checkout source
61+
uses: actions/checkout@v4
62+
63+
- name: Setup micromamba for node
64+
uses: mamba-org/setup-micromamba@v2
65+
with:
66+
environment-name: node-env
67+
create-args: >-
68+
nodejs=22
69+
init-shell: bash
70+
cache-environment: true
71+
72+
- name: Unpack bokehjs artifact
73+
uses: actions/download-artifact@v4
74+
with:
75+
name: bokehjs-artifact
76+
77+
- name:
78+
working-directory: ci
79+
run: |
80+
bash prepare_playwright.sh

ci/prepare_playwright.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,8 @@ rm temp.json
6868
# 5. Copy tests into temp example directory
6969
cp -r ../../../tests .
7070

71-
# Run tests
71+
# 6. Install playwright browser
72+
npx playwright install chromium
73+
74+
# 7. Run tests
7275
npm run test

0 commit comments

Comments
 (0)