Skip to content

ci: add older Python versions to test matrix #42

ci: add older Python versions to test matrix

ci: add older Python versions to test matrix #42

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --editable .
- name: Unit tests
run: |
python3 -m unittest -v
- name: PEP8
run: |
python3 -m pip install flake8
flake8 --max-line-length 120