-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (30 loc) · 900 Bytes
/
build.yml
File metadata and controls
34 lines (30 loc) · 900 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
32
33
34
name: Build and test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
- name: Install dependencies
run: pipenv install --dev --python ${{ matrix.python-version }}
- name: Run linter
run: pipenv run lint
- name: Run type
run: pipenv run type
- name: Run tests
run: pipenv run test --cov=evasdk --cov-branch --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v1.0.7
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml