Skip to content
Merged
Prev Previous commit
Next Next commit
Use matrix
  • Loading branch information
corona10 committed Aug 18, 2023
commit d26b39eff75ed6101c0b661af41a4f7551c1799d
23 changes: 6 additions & 17 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ concurrency:
cancel-in-progress: true

jobs:
mypy-cases-generator:
name: Run mypy on Tools/cases_generator/
mypy:
strategy:
matrix:
target: ["Tools/cases_generator", "Tools/clinic"]
name: Run mypy on ${{ matrix.target }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -37,18 +40,4 @@ jobs:
cache: pip
cache-dependency-path: Tools/requirements-dev.txt
- run: pip install -r Tools/requirements-dev.txt
- run: mypy --config-file Tools/cases_generator/mypy.ini

mypy-clinic:
name: Run mypy on Tools/clinic/
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: Tools/requirements-dev.txt
- run: pip install -r Tools/requirements-dev.txt
- run: mypy --config-file Tools/clinic/mypy.ini
- run: mypy --config-file ${{ matrix.target }}/mypy.ini