Skip to content

Commit bd84c29

Browse files
committed
test: add mypy.yml
1 parent b910958 commit bd84c29

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/mypy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Mypy
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.13"]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
cd backend/src
25+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
27+
- name: Test with Mypy
28+
run: |
29+
mypy .

0 commit comments

Comments
 (0)