-
Notifications
You must be signed in to change notification settings - Fork 11
82 lines (67 loc) · 2.01 KB
/
ipywidgets-bokeh-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
name: ipywidgets-bokeh-CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18.x]
defaults:
run:
shell: bash -el {0}
steps:
- name: Set up conda and install base
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: test
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade npm
run: |
npm install --location=global npm
- name: Install JavaScript dependencies
working-directory: ./ipywidgets_bokeh
run: |
npm ci --no-progress
- name: Build ipywidgets-bokeh JavaScript
working-directory: ./ipywidgets_bokeh
run: |
npm run build
- name: Run JavaScript tests
if: success() || failure()
working-directory: ./ipywidgets_bokeh
run: |
npm run test
- name: Lint the JavaScript codebase
if: success() || failure()
working-directory: ./ipywidgets_bokeh
run: |
npm run lint
- name: Install dev Python dependencies & Playwright browsers
if: success() || failure()
run: |
conda install --channel conda-forge -y pip python
conda info
python -m pip install --editable .[dev]
python -m playwright install --with-deps
- name: Run Playwright & Python tests
if: matrix.os != 'windows-latest'
run: |
pytest
- name: Check repository status
if: success() || failure()
run: |
OUTPUT=$(git status --short .)
if [[ ! -z "$OUTPUT" ]]; then echo $OUTPUT; exit 1; fi