35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: Proxy.py Library
|
|
|
|
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
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-testing.txt
|
|
- name: Quality Check
|
|
run: |
|
|
flake8 --ignore=W504 --max-line-length=127 proxy/ tests/ benchmark/ plugin_examples/ dashboard/dashboard.py setup.py
|
|
mypy --strict --ignore-missing-imports proxy/ tests/ benchmark/ plugin_examples/ dashboard/dashboard.py setup.py
|
|
- name: Run Tests
|
|
run: pytest --cov=proxy tests/
|
|
- name: Upload coverage to Codecov
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
run: codecov
|