use uv dev dependencies, fix test workflow #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
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 softhsm2 | |
- 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: Build extension | |
run: uv run python setup.py build_ext -i | |
- name: Install the project | |
run: uv sync --all-extras --python-preference only-system --python ${{ matrix.python-version }} | |
- name: ls | |
run: ls /usr/lib/softhsm/libsofthsm2.so | |
- name: Run tests | |
run: uv run --python ${{ matrix.python-version }} pytest -v tests/test_slots_and_tokens.py::test_get_mechanisms |