diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b72c46e..4efcefc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,7 @@ defaults: jobs: build-bokehjs: + name: Build bokehjs npm package runs-on: ubuntu-24.04 steps: @@ -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 diff --git a/ci/prepare_playwright.sh b/ci/prepare_playwright.sh index fe119f5..a44cf4b 100755 --- a/ci/prepare_playwright.sh +++ b/ci/prepare_playwright.sh @@ -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