-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (32 loc) · 965 Bytes
/
mypy.yaml
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
35
36
37
38
39
40
41
name: MyPy
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mypy:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Add Poetry to PATH on Windows
if: runner.os == 'Windows'
run: $env:Path += ";$env:USERPROFILE\.poetry\bin"
- name: Install Dependencies
run: poetry install --no-interaction
- name: Run MyPy
run: make mypy