-
Notifications
You must be signed in to change notification settings - Fork 279
36 lines (36 loc) · 943 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
name: tests
on:
- push
- pull_request
jobs:
test:
name: Run tests
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
python-version: [3.6]
poetry-version: [1.1.4]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run mypy
run: poetry run mypy src
- name: Run flake8
run: poetry run flake8 src
- name: Run pylint
run: poetry run pylint src
- name: Run tests
run: poetry run pytest src/tests
- name: Run vulture
run: poetry run vulture src