-
Notifications
You must be signed in to change notification settings - Fork 30
54 lines (52 loc) · 1.32 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-code:
name: Check code quality
runs-on: ubuntu-20.04
steps:
- name: Checkout branch
uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- name: Install dependencies
run: make install-dev
- name: Check code quality
run: make check
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python: [3.8, 3.9]
os: [ubuntu-20.04]
name: Test on Python ${{ matrix.python }}
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64
cache: 'pip'
cache-dependency-path: |
setup.py
requirements.txt
dev-requirements.txt
- name: Install dependencies
run: |
pip install --upgrade pip
make install-all
- name: Run tests
run: make test
# - name: Upload coverage
# run: bash <(curl -s https://codecov.io/bash)
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}