-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (37 loc) · 896 Bytes
/
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
name: ci
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
with:
python-version: "3.x"
- uses: actions/checkout@v2
- name: Lint with flake8
run: |
pip install flake8
flake8 .
- name: Lint with black
run: |
pip install black
black --check .
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/setup-python@v1
with:
python-version: "3.x"
- uses: actions/checkout@v2
- name: Install package
run: pip install .
- name: Test with pytest
run: |
pip install pytest pytest-cov
cd test/ && pytest --cov krypy
- name: Submit to codecov
if: ${{ matrix.python-version == '3.8' }}
run: bash <(curl -s https://codecov.io/bash)