Skip to content

chore: open 3.1.2 fix release #1451

chore: open 3.1.2 fix release

chore: open 3.1.2 fix release #1451

Workflow file for this run

name: Run tests
on:
# NOTE(vytas): Trigger the tests workflow on push or pull request
# (pull requests only for the master branch for now).
push:
branches:
- "*"
pull_request:
branches:
- master
jobs:
run_tox:
name: tox -e ${{ matrix.toxenv }} (${{matrix.python-version}} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
os:
- "ubuntu-20.04"
toxenv:
- "pep8"
- "blue"
- "pep8-examples"
- "pep8-docstrings"
- "mypy"
- "py38"
- "py38_sans_msgpack"
- "py38_cython"
- "py38_smoke"
- "py38_smoke_cython"
- "docs"
- "towncrier"
- "look"
- "asgilook"
- "check_vendored"
- "twine_check"
- "daphne"
- "hypercorn"
- "e2e_chrome"
- "e2e_firefox"
- "no_optional_packages"
- "wsgi_servers"
# TODO(kgriffs): Re-enable once hug has a chance to address
# breaking changes in Falcon 3.0
# - "hug"
include:
- python-version: pypy3
os: ubuntu-20.04
toxenv: pypy3
- python-version: 3.5
os: ubuntu-20.04
toxenv: py35
- python-version: 3.6
os: ubuntu-20.04
toxenv: py36
- python-version: 3.6
os: ubuntu-20.04
toxenv: py36_cython
- python-version: 3.7
os: ubuntu-20.04
toxenv: py37
- python-version: 3.9
os: ubuntu-20.04
toxenv: py39
- python-version: 3.9
os: ubuntu-20.04
toxenv: py39_cython
# NOTE(vytas): Quote "3.10" or else it is parsed as a YAML float 3.1.
- python-version: "3.10"
os: ubuntu-20.04
toxenv: py310
- python-version: "3.10"
os: ubuntu-20.04
toxenv: py310_cython
- python-version: "3.11.0-rc - 3.11"
os: ubuntu-latest
toxenv: py311
- python-version: "3.11.0-rc - 3.11"
os: ubuntu-latest
toxenv: py311_cython
- python-version: 3.8
os: ubuntu-20.04
toxenv: py38_sans_msgpack
- python-version: 3.8
os: macos-latest
toxenv: py38_nocover
- python-version: 3.8
os: windows-latest
toxenv: py38_nocover
# Steps to run in each job.
# Some are GitHub actions, others run shell commands.
steps:
- name: Checkout repo
uses: actions/checkout@v2
# NOTE(vytas): Work around
# https://github.com/codecov/codecov-action/issues/190
with:
fetch-depth: 2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install smoke test dependencies
if: ${{ matrix.toxenv == 'py38_smoke' || matrix.toxenv == 'py38_smoke_cython' }}
run: |
sudo apt-get update
sudo apt-get install -y libunwind-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U coverage fixtures setuptools tox wheel
python --version
pip --version
tox --version
coverage --version
- name: Run tests
run: tox -e ${{ matrix.toxenv }}
- name: Combine coverage
if: ${{ matrix.toxenv == 'py35' || matrix.toxenv == 'py38' || matrix.toxenv == 'py38_sans_msgpack' }}
run: |
coverage --version
coverage combine
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: ${{ matrix.toxenv == 'py35' || matrix.toxenv == 'py38' || matrix.toxenv == 'py38_sans_msgpack' }}
with:
env_vars: PYTHON
fail_ci_if_error: true