Support newer python versions #436
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CILint | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12"] | |
os: [ubuntu-latest] | |
include: | |
# Use ubuntu 20.04 for python 3.6 (dropped from later versions) | |
- python-version: 3.6 | |
os: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Python${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Tox | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Run linter, unit tests and render docs | |
run: tox -e "doc,check,unit_py${PY_VER/./_}" | |
env: | |
PY_VER: ${{ matrix.python-version }} |