Skip to content

Update Python versions to 3.12-3.14 (#143) #408

Update Python versions to 3.12-3.14 (#143)

Update Python versions to 3.12-3.14 (#143) #408

name: GitHub actions simplified
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]
repository_dispatch:
types: [ "**" ]
permissions:
contents: read
concurrency:
group: test-python-simplified-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
PYOQS_ENABLE_FAULTHANDLER: "1"
jobs:
build:
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
runs-on: ubuntu-latest
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Run examples
run: |
uv sync --extra dev
uv run examples/kem.py
uv run examples/sig.py
uv run examples/rand.py
uv run examples/stfl_sig.py
uv run oqs/serialize.py
- name: Run unit tests
run: |
# Ensure dev extras (nose2, pyasn1, etc.) are present
uv sync --extra dev
uv run nose2 --verbose