2020-09-03 21:02:15 +00:00
|
|
|
name: mypy
|
|
|
|
|
2022-10-06 08:17:21 +00:00
|
|
|
on: [pull_request]
|
2020-09-03 21:02:15 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
2022-08-03 12:10:32 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-09-27 15:44:52 +00:00
|
|
|
python-version: ["3.9"]
|
|
|
|
poetry-version: ["1.2.1"]
|
2020-09-03 21:02:15 +00:00
|
|
|
steps:
|
2022-08-03 12:10:32 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
2020-09-03 21:02:15 +00:00
|
|
|
with:
|
2022-08-03 12:10:32 +00:00
|
|
|
python-version: ${{ matrix.python-version }}
|
2022-09-27 15:44:52 +00:00
|
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
|
|
uses: abatilo/actions-poetry@v2
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
2022-08-03 12:10:32 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
poetry install
|
|
|
|
- name: Run tests
|
|
|
|
run: poetry run mypy
|