Skip to content

Support CPython 3.13 #336

Support CPython 3.13

Support CPython 3.13 #336

Workflow file for this run

name: tests
on:
push:
branches: [ "main", "dev" ]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- 3.13.0
- 3.13t
name: ${{ matrix.os }} / ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
if: "!endsWith(matrix.python-version, 't')"
with:
python-version: ${{ matrix.python-version }}
- name: set up python ${{ matrix.python-version }}
uses: deadsnakes/[email protected]
if: endsWith(matrix.python-version, 't')
with:
python-version: 3.13
nogil: true
# - if: endsWith(matrix.python-version, 't')
# run: |
# uv python install ${{ matrix.python-version }}
# uv venv --python ${{ matrix.python-version }}
# . .venv/bin/activate
# echo PATH=$PATH >> $GITHUB_ENV
# uv pip install pip
- run: python --version --version && which python
- name: system info
run: |
uname -a
cat /proc/cpuinfo
- name: install dependencies & cereggii
run: |
python -m pip install --upgrade pip
pip -V
pip install .[dev]
- name: test with pytest
run: |
pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}