-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (54 loc) · 1.38 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Linux py36
os: ubuntu-16.04
pyversion: '3.6'
- name: Linux py37
os: ubuntu-latest
pyversion: '3.7'
- name: Linux py38
os: ubuntu-latest
pyversion: '3.8'
- name: Linux py39
os: ubuntu-latest
pyversion: '3.9'
- name: MacOS py38
os: macos-latest
pyversion: '3.8'
- name: Windows py38
os: windows-latest
pyversion: '3.8'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U -r requirements.txt
pip install -q -U black flake8 pytest
- name: Lint (black and flake8)
run: |
black --check .
flake8 .
- name: Test with pytest
shell: bash
run: |
python setup.py install
rm -rf ./dash_slicer ./build ./egg-info
pytest -v .