Skip to content

Merge branch 'master' into stubs #10

Merge branch 'master' into stubs

Merge branch 'master' into stubs #10

Workflow file for this run

name: Python tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- { VERSION: "3.6", TOXENV: "py36", ALLOW_FAILURE: false }
- { VERSION: "3.7", TOXENV: "py37", ALLOW_FAILURE: false }
- { VERSION: "3.8", TOXENV: "py38",ALLOW_FAILURE: false }
- { VERSION: "3.9", TOXENV: "py39-flake8,readme,doclint,docs,commitlint",ALLOW_FAILURE: false }
- { VERSION: "3.9", TOXENV: "docstrings", ALLOW_FAILURE: true}
- { VERSION: "pypy3", TOXENV: "pypy", ALLOW_FAILURE: false }
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.4
- name: Setup Python
uses: actions/setup-python@v2.2.1
with:
python-version: ${{ matrix.PYTHON.VERSION }}
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Tox
run: |
pip install --constraint=.github/workflows/constraints.txt tox
tox --version
- name: Run Tox
run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
GH_RECORD_MODE: "none"
continue-on-error: ${{ matrix.PYTHON.ALLOW_FAILURE }}