Skip to content

fix: Typo

fix: Typo #136

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 .