-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 859 Bytes
/
checks.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
41
42
---
name: Checks
on:
pull_request:
branches:
- master
jobs:
test-lint:
name: Test and Lint
runs-on: ubuntu-20.04
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v2
- name: Setup Python
id: python
uses: actions/setup-python@v2
with:
python-version: "3.8.1"
- name: Install Poetry
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
id: install
run: poetry install
- name: Run tests
id: tests
run: python -m unittest discover -s tests
if: steps.install.outcome == 'success'
- name: Run flake8
id: flake8
run: flake8
if: steps.install.outcome == 'success'