Review: Add Python 3.11 and 3.12 to the testing #250
Workflow file for this run
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: Review | |
on: [push, pull_request] | |
jobs: | |
review: | |
name: Run linters and tests | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
python: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
- name: Set the python version | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
uses: ./.github/actions/install | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Run tests | |
env: | |
PYTHON_VERSION: ${{ matrix.python }} | |
run: tox -e $(tox -l | grep py${PYTHON_VERSION//.} | paste -sd "," -) | |
- name: Report coverage | |
run: | | |
pip install coverage | |
coverage report | |
- name: Check for incompatibilities with publishing to PyPi | |
if: ${{ matrix.python == 3.11 }} | |
run: | | |
pip install -r requirements/publish.txt | |
python setup.py sdist | |
twine check dist/* |