Skip to content

use uv dev dependencies, fix test workflow #29

use uv dev dependencies, fix test workflow

use uv dev dependencies, fix test workflow #29

Workflow file for this run

name: Tests
on:
push:
jobs:
run:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.12"
- "3.13"
steps:
- name: Install APT dependencies
run: sudo apt-get install -y gcc python3 python3-dev softhsm2 openssl
- name: Acquire sources
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Setup Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Create venv
run: uv venv --python-preference only-system --python ${{ matrix.python-version }}
- name: Update setuptools
run: uv pip install setuptools
- name: Install the project
run: uv sync --all-extras --python-preference only-system --python ${{ matrix.python-version }}
- name: test.py
run: uv run python test.py
- name: Run tests
run: uv run --python ${{ matrix.python-version }} pytest -v tests/test_aes.py::test_encrypt