-
Notifications
You must be signed in to change notification settings - Fork 71
46 lines (37 loc) · 996 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Tests
on:
push:
env:
UV_SYSTEM_PYTHON: true
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/[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: 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