Add Python 3.13 support #127
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-22.04", "windows-2022"] | |
python: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
name: "${{ matrix.os }} / Python ${{ matrix.python }}" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: "pip" | |
cache-dependency-path: "**/*requirements.txt" | |
- name: Install torch CPU-only version | |
run: python -m pip install -r .github/torch_cpu_requirements.txt | |
- name: Install charonload | |
run: python -m pip install --editable ".[dev]" | |
- name: Install test python project | |
run: python -m pip install tests/data/charonload_installed_project | |
- name: Run tests | |
run: nox -s tests | |
- name: Run C++-only test | |
run: | | |
cmake -S tests/cpp_only_project -B build/cpp_only_project | |
cmake --build build/cpp_only_project --parallel | |
check_tests: | |
if: always() | |
needs: | |
- tests | |
name: "Check Tests" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |