-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 772 Bytes
/
Copy pathmain.yml
File metadata and controls
31 lines (28 loc) · 772 Bytes
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
name: main
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: python -mpip install --upgrade pip tox virtualenv
- run: tox -e py
- uses: codecov/codecov-action@v2
with:
file: coverage.xml
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- run: python -mpip install --upgrade pip tox virtualenv
- run: tox -e flake8,pylint,isort,black,mypy