-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (42 loc) · 1.39 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
name: check
on:
push
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11.11
architecture: x64
- name: Checkout
uses: actions/checkout@v1
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Create a virtual environment
run: uv venv --python 3.11.11
- name: Run flake8
run: uv run flake8
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11.11
architecture: x64
- name: Checkout
uses: actions/checkout@v1
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Create a virtual environment
run: uv venv --python 3.11.11
- name: Run mypy for src
run: uv run mypy -p src --cache-dir=/dev/null --config-file=pyproject.toml
- name: Run mypy for tests
run: uv run mypy -p tests --cache-dir=/dev/null --config-file=pyproject.toml
- name: Run mypy for env.py in migrations
run: uv run mypy -m migrations.env --cache-dir=/dev/null --config-file=pyproject.toml
- name: Run mypy for models.py in migrations
run: uv run mypy -m migrations.models --cache-dir=/dev/null --config-file=pyproject.toml