Skip to content

feat!:Support EC, Ed25519, RSA-PSS and post-quantum signing keys #211

feat!:Support EC, Ed25519, RSA-PSS and post-quantum signing keys

feat!:Support EC, Ed25519, RSA-PSS and post-quantum signing keys #211

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-24.04", "ubuntu-22.04"]
python: ["3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}
enable-cache: true
activate-environment: true
- name: Lint with Ruff
run: uvx ruff check --output-format=github .
continue-on-error: false
- name: Install dependencies
run: |
uv pip install coveralls
uv pip install mypy
uv sync --locked --all-extras --dev
- name: Install SoftHSM2 and OpenSC for PKCS#11 signing tests
run: |
sudo apt-get update
sudo apt-get install -y softhsm2 opensc
- name: Run tests
env:
# Fail instead of skipping the SoftHSM2 signing tests if the token
# cannot be set up or a key type cannot be generated.
PYFF_REQUIRE_SOFTHSM: "1"
run: |
uv run python -m coverage erase
uv run python -m coverage run -m pytest --cov=src/pyff
mv .coverage .coverage.1
uv run python -m coverage combine
#make typecheck