Skip to content

Commit

Permalink
Update mypy.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Song Luar <[email protected]>
  • Loading branch information
luarss authored Jul 9, 2024
1 parent 18bc234 commit 1ee37d3
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
name: MyPy

on:
push:
branches:
- feat/mypy-ci # TODO: remove.
- master
pull_request:
branches:
- feat/mypy-ci # TODO: remove.
- master
on: [push, pull_request]

jobs:
backend:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
pip install -r backend/requirements-test.txt
- name: Run MyPy
run: |
python -m mypy --strict backend
Expand All @@ -35,17 +23,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
pip install -r frontend/requirements-test.txt
- name: Run MyPy
run: |
python -m mypy --strict frontend
# python -m mypy --strict evaluation # TODO.

0 comments on commit 1ee37d3

Please sign in to comment.