-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 768 Bytes
/
Copy pathmypy.yml
File metadata and controls
34 lines (29 loc) · 768 Bytes
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
name: MyPy Type Checking
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
mypy:
name: Mypy Type Checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "backend/uv.lock"
- name: Install Python and dependencies
run: |
cd backend
uv python install 3.12
uv sync --frozen --group lint --group test --no-dev
- name: Run mypy
env:
SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }}
run: |
cd backend
uv run --no-sync mypy --config-file pyproject.toml --strict .