Skip to content

small refactor to share logic between jwk and paseto #45

small refactor to share logic between jwk and paseto

small refactor to share logic between jwk and paseto #45

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
# Linux, Windows, MacOS
test-standard:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- name: Set up Rust
run: rustup update stable && rustup default stable
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: pip install maturin pytest
- name: Build and install
shell: bash
run: |
maturin build --release
pip install target/wheels/*.whl
- name: Run tests
run: pytest tests
# Alpine Linux (Musl)
test-alpine:
name: Test (Alpine/Musl)
runs-on: ubuntu-latest
container:
image: python:3.13-alpine
steps:
- uses: actions/checkout@v6
- name: Install Alpine build deps
run: apk add --no-cache gcc musl-dev libffi-dev rust cargo openssl-dev git patchelf
- name: Install dependencies
run: pip install maturin pytest
- name: Build and install
run: |
maturin build --release
pip install target/wheels/*.whl
- name: Run tests
run: pytest tests
# FreeBSD
test-freebsd:
name: Test (FreeBSD)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Test in FreeBSD VM
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y rust python313 git
run: |
python3.13 -m venv venv
. venv/bin/activate
pip install maturin pytest
maturin build --release
pip install target/wheels/*.whl
pytest tests