proxy.py/.github/workflows/testing.yml

35 lines
1.1 KiB
YAML

name: Proxy.py
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
name: Python ${{ matrix.python }} on ${{ matrix.os }}
strategy:
matrix:
os: [macOS, ubuntu, windows]
python: [3.6, 3.7]
max-parallel: 4
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}-dev
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-testing.txt
- name: Quality Check
run: |
# The GitHub editor is 127 chars wide
# W504 screams for line break after binary operators
flake8 --ignore=W504 --max-line-length=127 proxy.py plugin_examples.py tests.py setup.py benchmark.py
# mypy compliance check
mypy --strict --ignore-missing-imports proxy.py plugin_examples.py tests.py setup.py benchmark.py
- name: Run Tests
run: pytest tests.py