-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (65 loc) · 1.66 KB
/
workflow.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: linting-and-tests
on:
pull_request:
branches:
- main
defaults:
run:
shell: bash -l {0}
jobs:
pep8:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Setup poetry
uses: ./.github/actions/poetry
- name: Run black
run: |
poetry run black --version
poetry run black --check multi_x_serverless --verbose
pylint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Setup poetry
uses: ./.github/actions/poetry
- name: Run pylint
run: |
poetry run pylint --version
poetry run pylint multi_x_serverless
pytest:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Setup poetry
uses: ./.github/actions/poetry
- name: Run tests
run: |
poetry run pytest --cov-reset --cache-clear > pytest-coverage.txt
- name: Comment coverage
uses: coroo/[email protected]
mypy:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Setup poetry
uses: ./.github/actions/poetry
- name: Run mypy
run: |
poetry run mypy --version
poetry run mypy multi_x_serverless
isort:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Setup poetry
uses: ./.github/actions/poetry
- name: Run isort
run: |
poetry run isort --version
poetry run isort multi_x_serverless --check --diff