Add support for CPython 3.13. (#4) #48
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: CI | |
on: | |
pull_request: | |
push: | |
branches: master | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: CI-${{ github.ref }} | |
# Queue on all branches and tags, but only cancel overlapping PR burns. | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' || !startsWith(github.ref, 'refs/tags/') }} | |
jobs: | |
org-check: | |
name: Check GitHub Organization | |
if: github.repository_owner == 'jsirois' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Noop | |
run: "true" | |
tests-36: | |
name: (${{ matrix.os }}) Python 3.6 Tests | |
needs: org-check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-12] | |
steps: | |
- name: Checkout p537 | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.6 | |
uses: gabrielfalcao/pyenv-action@v18 | |
env: | |
ENSUREPIP: no | |
with: | |
default: "3.6.15" | |
command: pip install -U tox | |
- name: Run Unit Tests | |
run: tox -e py36 | |
tests-37-313: | |
name: (${{ matrix.os }}) Python 3.7 - 3.13 Tests | |
needs: org-check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-12, windows-2022] | |
steps: | |
- name: Checkout p537 | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.7 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.7" | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Setup Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Setup Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13.0-alpha.2" | |
- name: Run Unit Tests | |
uses: pantsbuild/actions/run-tox@b16b9cf47cd566acfe217b1dafc5b452e27e6fd7 | |
with: | |
tox-env: py37,py38,py39,py310,py311,py312,py313 | |
final-status: | |
name: Gather Final Status | |
needs: | |
- tests-36 | |
- tests-37-313 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check Non-Success | |
if: | | |
contains(needs.*.result, 'cancelled') || | |
contains(needs.*.result, 'failure') || | |
contains(needs.*.result, 'skipped') | |
run: "false" | |
- name: Success | |
run: "true" |