misc!: Added Python 3.13 support and removed Python 3.8 support #263
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: "Python Lint and Tests" | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
name: "Build and test YOGA" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout the repository" | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: "Set up Python ${{ matrix.python-version }}" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: "Install Python dependencies" | |
run: | | |
pip install setuptools nox | |
- name: "Lint with flake8, Black and codespell" | |
run: | | |
python3 -m nox --session lint | |
- name: "Test with pytest" | |
run: | | |
python3 -m nox --session test-${{ matrix.python-version }} |