Skip to content

[pre-commit.ci] pre-commit autoupdate #71

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #71

Workflow file for this run

name: Python package
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install tox and any other packages
run: pip install tox
- name: Check for lint
run: tox -e lint
build:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [3.8, 3.9, '3.10', '3.11']
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
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
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- 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