fix: Typo #136
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: Type checking with mypy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
type_check: | |
name: Type check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Ubuntu packages | |
run: | | |
sudo apt install -y python3-pip | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install mypy | |
- name: Prepare mypy | |
run: | | |
python3 -m pip install types-PyYAML | |
- name: Type check | |
run: | | |
cd src | |
python3 -m mypy --no-namespace-packages --check-untyped-defs . |