blob: 7c7759996ba16be43c06ef49825828e475f2442c [file] [log] [blame]
name: Foal Type Tests
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [3.7, 3.9]
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt
pip install -r server/requirements.txt
pip install mypy
- name: Type testing with mypy
run: |
mypy --cache-dir /tmp/ --install-types
mypy --cache-dir /tmp/ --ignore-missing-imports tools/archiver.py
mypy --cache-dir /tmp/ --ignore-missing-imports tools/import-mbox.py
mypy --cache-dir /tmp/ --ignore-missing-imports server/main.py
mypy --cache-dir /tmp/ --ignore-missing-imports server/plugins/*.py
mypy --cache-dir /tmp/ --ignore-missing-imports server/endpoints/*.py