tests: make the disconnect test a bit more predictable. #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check typing with MyPy" | |
on: | |
push: | |
paths: | |
- '.github/workflows/mypy.yml' | |
- 'pyproject.toml' | |
- '**.py' | |
pull_request: | |
paths: | |
- '.github/workflows/mypy.yml' | |
- 'pyproject.toml' | |
- '**.py' | |
workflow_dispatch: | |
env: | |
PYTHON_VERSION: "3.12" | |
jobs: | |
mypy: | |
name: "Run typing checks" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install linting dependencies | |
run: make install-package install-linting | |
- name: MyPy | |
run: mypy --junit-xml=mypy.xml | |
- name: Upload type checking results | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: Type checking results (Python ${{ matrix.python-version }}) | |
path: mypy.xml |