-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (41 loc) · 1.15 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
name: CI
on: [push]
jobs:
check-code:
name: Check code quality
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: x64
- name: Install dependencies
run: pip install -r dev-requirements.txt
- name: Check code quality
run: make check
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8, 3.9 ]
os: [ubuntu-20.04]
name: Test on Python ${{ matrix.python }}
steps:
- name: Checkout branch
uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: pip install -r requirements.txt && pip install -r dev-requirements.txt
- name: Run tests
run: make test
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}