nvchecker/.github/workflows/mypy.yaml

29 lines
975 B
YAML
Raw Normal View History

2020-08-17 08:42:54 +00:00
name: run mypy
on: [push, pull_request]
jobs:
build:
name: run mypy
runs-on: ubuntu-20.04
2020-08-17 08:42:54 +00:00
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Cache
uses: actions/cache@v2
env:
cache-name: cache-pipmypy
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-cache-pip-
2020-08-17 08:42:54 +00:00
- name: Install deps
2021-12-29 08:36:23 +00:00
run: pip3 install -U tornado pytest pytest-asyncio pytest-httpbin flaky structlog tomli aiohttp httpx mypy
- name: Run mypy for --install-types
run: PATH=$HOME/.local/bin:$PATH mypy nvchecker nvchecker_source tests
continue-on-error: true
- name: Install types
run: PATH=$HOME/.local/bin:$PATH yes | mypy --install-types
2020-08-17 08:42:54 +00:00
- name: Run mypy
run: PATH=$HOME/.local/bin:$PATH mypy nvchecker nvchecker_source tests