Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

Workflow file for this run

name: test
on:
pull_request:
push:
branches: [main]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: python -m pip install -e .[tests]
- name: Test
run: pytest --cov-report=xml --cov-report=term
- uses: codecov/codecov-action@v3
if: ${{ matrix.python == '3.12' }}