-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 945 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
43
44
45
---
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@v4
with:
python-version: "3.9"
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
id: install
run: |
poetry install --no-interaction --all-extras
- name: Run tests
id: tests
run: |
poetry run python -m unittest discover -s tests
if: steps.install.outcome == 'success'
- name: Run flake8
id: flake8
run: |
poetry run flake8
if: steps.install.outcome == 'success'