forked from bokeh/bokeh
-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (90 loc) · 2.51 KB
/
bokehjs-ci.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: BokehJS-CI
on:
push:
branches:
- main
- branch-*
paths:
- 'bokehjs/**'
pull_request:
paths:
- 'bokehjs/**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
node-version: [16.x]
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade npm
shell: bash
run: |
npm install -g npm@8
- name: Install chromium
if: runner.os == 'Linux'
shell: bash
run: |
VER=95.0.4638.69
REV=chromium_1810
URL=https://github.com/bokeh/chromium/raw/main/linux/$VER
wget --no-verbose $URL/$REV.assert
wget --no-verbose $URL/$REV.snap
sudo snap ack $REV.assert
sudo snap install $REV.snap
- name: Install dependencies
working-directory: ./bokehjs
shell: bash
run: |
npm ci --no-progress
- name: Build bokehjs
working-directory: ./bokehjs
shell: bash
run: |
node make lib:build
- name: Build examples
working-directory: ./bokehjs
shell: bash
run: |
node make examples:build
- name: Run tests
working-directory: ./bokehjs
shell: bash
run: |
node make test:lib
- name: Lint codebase
working-directory: ./bokehjs
shell: bash
run: |
node make lint
- name: Check repository status
shell: bash
run: |
OUTPUT=$(git status --short bokehjs -- ':!bokehjs/test/baselines')
if [[ ! -z "$OUTPUT" ]]; then echo $OUTPUT; exit 1; fi
- name: Collect results
if: runner.os == 'Linux' && always()
shell: bash
run: |
SRC="bokehjs/test/baselines/linux"
DST="bokehjs-report/${SRC}"
mkdir -p ${DST}
if [[ -e ${SRC}/report.json ]];
then
CHANGED=$(git status --short ${SRC}/\*.blf ${SRC}/\*.png | cut -c4-)
cp ${SRC}/report.json ${CHANGED} ${DST}
fi
- name: Upload report
if: runner.os == 'Linux' && always()
uses: actions/upload-artifact@v1
with:
name: bokehjs-report
path: bokehjs-report