mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-13 18:25:34 +00:00
0114a411f2
because travis queues are too long.
24 lines
734 B
YAML
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
|