-
Notifications
You must be signed in to change notification settings - Fork 262
90 lines (85 loc) · 2.17 KB
/
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
name: CI
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
jobs:
lint-build:
name: Linting
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U invoke pycodestyle flake8
- name: Lint
run: |
invoke test --style;
docs-build:
name: Docs
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U invoke sphinx tornado pscript>=0.5.6 webruntime dialite;
- name: Build docs
run: |
python -c 'import flexx.ui';
invoke docs --clean --build;
test-builds:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Test Linux py35
os: ubuntu-latest
pyversion: '3.5'
- name: Test Linux py36
os: ubuntu-latest
pyversion: '3.6'
- name: Test Linux py37
os: ubuntu-latest
pyversion: '3.7'
- name: Test Linux py38
os: ubuntu-latest
pyversion: '3.8'
- name: Test Linux py39
os: ubuntu-latest
pyversion: '3.9'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyversion }}
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U tornado pscript>=0.5.6 webruntime dialite;
pip install -U invoke pytest pytest-cov;
- name: Unit tests
uses: GabrielBB/xvfb-action@v1
with:
run: invoke test --unit