-
Notifications
You must be signed in to change notification settings - Fork 1.9k
95 lines (74 loc) · 2 KB
/
ci.yaml
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
name : CI
on:
push:
branches: [master, v0.11]
pull_request:
branches: [master, v0.11]
env:
NB_KERNEL: python
MPLBACKEND: Agg
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Install seaborn
run: |
python -m pip install --upgrade pip
pip install `cat ci/deps_latest.txt ci/utils.txt`
pip install .
- name: Install doc tools
run: |
pip install -r doc/requirements.txt
sudo apt-get install pandoc
- name: Build docs
run: |
make -C doc -j `nproc` notebooks
make -C doc html
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6.x, 3.7.x, 3.8.x, 3.9.x]
target: [test]
deps: [latest]
backend: [agg]
include:
- python: 3.6.x
target: unittests
deps: pinned
backend: agg
- python: 3.9.x
target: unittests
deps: minimal
backend: agg
- python: 3.9.x
target: test
deps: latest
backend: tkagg
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install seaborn
run: |
python -m pip install --upgrade pip
pip install `cat ci/deps_${{ matrix.deps }}.txt ci/utils.txt`
pip install .
- name: Cache datastes
run: python ci/cache_test_datasets.py
- name: Run tests
env:
MPLBACKEND: ${{ matrix.backend }}
run: |
if [[ ${{ matrix.backend }} == 'tkagg' ]]; then PREFIX='xvfb-run -a'; fi
$PREFIX make ${{ matrix.target }}
- name: Upload coverage
uses: codecov/codecov-action@v1
if: ${{ success() }}