From 1ee37d3fa78773f66ec5387581bffa723f723744 Mon Sep 17 00:00:00 2001 From: Song Luar Date: Tue, 9 Jul 2024 11:18:50 +0800 Subject: [PATCH] Update mypy.yaml Signed-off-by: Song Luar --- .github/workflows/mypy.yaml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index 5a16b0b..d6c4cf0 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -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 @@ -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. \ No newline at end of file