-
Notifications
You must be signed in to change notification settings - Fork 4
89 lines (75 loc) · 1.94 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "24 03 * * SUN"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build-bokehjs:
name: Build bokehjs npm package
runs-on: ubuntu-24.04
steps:
- 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: Clone bokeh branch
run: |
git clone -b ianthomas23/bokehjs_examples_temp --single-branch --depth 1 https://github.com/bokeh/bokeh.git
- name: Build bokehjs
working-directory: bokeh/bokehjs
run: |
node make build
npm pack
- name: Upload bokehjs npm package
uses: actions/upload-artifact@v4
with:
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
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: test-artifact
path: |
ci/temp/
!ci/temp/**/node_modules