-
Notifications
You must be signed in to change notification settings - Fork 38
38 lines (35 loc) · 879 Bytes
/
commit.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
---
name: commit
on:
push:
jobs:
lint:
name: Python Lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install requirements
run: pip install flake8 pycodestyle
- name: Run flake8
run: flake8 . --count --show-source --statistics --ignore=E501
test:
strategy:
matrix:
py-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Pytest
runs-on: ubuntu-latest
needs: lint
steps:
- name: checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py-version }}
- name: Install requirements
run: pip install pytest -r requirements.txt
- name: Run pytest
run: pytest