-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (46 loc) · 1.3 KB
/
check.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
46
47
name: check
on:
push
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11.10
architecture: x64
- name: Checkout
uses: actions/checkout@v1
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install
- name: Run flake8
run: poetry run flake8
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11.10
architecture: x64
- name: Checkout
uses: actions/checkout@v1
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install
- name: Run mypy for src_
run: poetry run mypy -p src_ --cache-dir=/dev/null --config-file=pyproject.toml
- name: Run mypy for tests
run: poetry run mypy -p tests --cache-dir=/dev/null --config-file=pyproject.toml