Skip to content

add 3.11 and 3.12, switch lint/format stack, add pre-commit, loosen dev tools version constraints #48

add 3.11 and 3.12, switch lint/format stack, add pre-commit, loosen dev tools version constraints

add 3.11 and 3.12, switch lint/format stack, add pre-commit, loosen dev tools version constraints #48

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: pip-
- name: Execute linters and test suites
run: ./scripts/cibuild
- name: Upload All coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false