nvchecker/.github/workflows/mypy.yaml
lilydjwg 0114a411f2 switch tests from travis to github actions
because travis queues are too long.
2021-02-01 15:17:44 +08:00

24 lines
734 B
YAML

name: run mypy
on: [push, pull_request]
jobs:
build:
name: run mypy
runs-on: ubuntu-20.04
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-
- name: Install deps
run: pip3 install -U tornado pytest pytest-asyncio pytest-httpbin flaky structlog toml aiohttp httpx mypy
- name: Run mypy
run: PATH=$HOME/.local/bin:$PATH mypy nvchecker nvchecker_source tests