-
Notifications
You must be signed in to change notification settings - Fork 15
102 lines (83 loc) · 2.25 KB
/
ci_tests.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
name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel jupyter-packaging "jupyterlab<4"
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Upload builds
uses: actions/upload-artifact@v3
with:
name: bqplot-image-gl-dist-${{ github.run_number }}
path: ./dist
visual-regression-tests:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: bqplot-image-gl-dist-${{ github.run_number }}
path: ./dist
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install bqplot-image-gl and jupyterlab
run: |
echo $PWD
ls -al .
ls -al dist/
pip install dist/bqplot_image_gl*.whl "pytest-ipywidgets[all]"
- name: Install playwright
run: |
playwright install chromium
- name: Run visual regression tests
run: |
pytest tests/ui
- name: Upload UI Test artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: bqplot-image-gl-ui-test-output
path: |
test-results
tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: codecov
envs: |
# Code style
- linux: codestyle
coverage: false
- linux: py36-test
runs-on: ubuntu-20.04
- linux: py38-test
- macos: py37-test
- macos: py310-test
- windows: py39-test
- linux: py38-notebooks
- macos: py37-notebooks
- windows: py39-notebooks