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