-
Notifications
You must be signed in to change notification settings - Fork 51
50 lines (43 loc) · 1.03 KB
/
code_quality.yml
File metadata and controls
50 lines (43 loc) · 1.03 KB
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
name: code-quality
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run linters
run: docker-compose run lint
test:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version:
- 'py36'
- 'py37'
- 'py38'
- 'py39'
- 'pypy3'
# include:
# TODO #81 CI pipline for other OSes
# - os: windows-latest
# python-version: py39
# - os: macos-latest
# python-version: py39
steps:
- uses: actions/checkout@v2
- name: Run compose to build & run tests against ${{ matrix.python-version }} container
run: docker-compose run test_${{ matrix.python-version }}
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true