Skip to content

run test in github actions (and with pytest) #1

run test in github actions (and with pytest)

run test in github actions (and with pytest) #1

Workflow file for this run

name: Code quality
on:
push:
env:
UV_SYSTEM_PYTHON: 1
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.12"
steps:
- name: Install APT dependencies
run: sudo apt-get install -y softhsm2
- name: Create SoftHSM token
run: softhsm2-util --init-token --free --label TEST --pin 1234 --so-pin 5678
- name: Acquire sources
uses: actions/checkout@v4.1.1
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install the project
run: uv sync --all-extras --dev
- name: Install dev dependencies
run: uv pip install -r dev-requirements.txt
- name: Run ruff
run: |
ruff format --diff .
ruff check --diff .