* Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * I have generated the latest API! --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
39 lines
763 B
YAML
39 lines
763 B
YAML
name: mypy
|
|
on:
|
|
push:
|
|
branches: main
|
|
paths:
|
|
- '**.py'
|
|
- .github/workflows/mypy.yml
|
|
- 'pyproject.toml'
|
|
pull_request:
|
|
paths:
|
|
- '**.py'
|
|
- .github/workflows/mypy.yml
|
|
- 'pyproject.toml'
|
|
jobs:
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
|
|
# Installation instructions are from: https://python-poetry.org/docs/
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
pip install \
|
|
poetry
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
poetry install
|
|
poetry build
|
|
|
|
- name: Run mypy
|
|
shell: bash
|
|
run: |
|
|
poetry run mypy .
|