Skip to content

[pre-commit.ci] pre-commit autoupdate (#140) #62

[pre-commit.ci] pre-commit autoupdate (#140)

[pre-commit.ci] pre-commit autoupdate (#140) #62

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [3.7, 3.8, 3.9, '3.10', 'pypy-3.7']
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py
# Run the extra tox configurations that run integration type tests.
extra:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e with_optional,runner,module,integration
coverage:
needs: extra
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox and any other packages
run: pip install tox
- name: Collect coverage data
run: tox -e coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
verbose: true