-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (53 loc) · 1.4 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
on:
# Trigger the workflow on push or
# pull request, but only for the
# master branch.
push:
branches:
- main
pull_request:
branches:
- main
# Weekly run to account for
# changed dependencies.
schedule:
- cron: '17 03 * * 0'
name: CI
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version:
- '3.8'
- '3.9'
include:
- os: ubuntu-20.04
python-version: '3.8'
installTyping: ${{ true }}
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: v1-pip-${{ runner.os }}-${{ matrix.python-version }}
restore-keys: |
v1-pip-${{ runner.os }}
v1-pip-
#- name: Lint
# run: python -m flake8
- name: Build the code and Install dependencies
run: pip install -e .[dev,components,widgets]
- name: Run tests
run: python -m pytest -v