File tree Expand file tree Collapse file tree 3 files changed +50
-7
lines changed
Expand file tree Collapse file tree 3 files changed +50
-7
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111
1212 steps :
13-
1413 - name : Acquire sources
15141615
2524 python-version : " 3.12"
2625 architecture : x64
2726
28- - name : Apply caching of dependencies
29- 30- with :
31- path : ~/.cache/pip
32- key : pip-${{ hashFiles('**/requirements-*.txt') }}
33-
3427 - name : Install dev dependencies
3528 run : uv pip install -r dev-requirements.txt
3629
Original file line number Diff line number Diff line change 1+ name : Tests
2+ on :
3+ push :
4+ env :
5+ UV_SYSTEM_PYTHON : 1
6+ SOFTHSM2_CONF : $HOME/softhsm2.conf
7+
8+ jobs :
9+
10+ run :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version :
15+ - " 3.9"
16+ - " 3.10"
17+ - " 3.11"
18+ - " 3.12"
19+ - " 3.12"
20+
21+ steps :
22+ - name : Install APT dependencies
23+ run : sudo apt-get install -y softhsm2
24+
25+ - name : Create SoftHSM token
26+ run : softhsm2-util --init-token --free --label TEST --pin 1234 --so-pin 5678
27+
28+ - name : Acquire sources
29+ 30+
31+ - name : Install uv
32+ uses : astral-sh/setup-uv@v4
33+ with :
34+ enable-cache : true
35+
36+ - name : Setup Python
37+ 38+ with :
39+ python-version : ${{ matrix.python-version }}
40+ architecture : x64
41+
42+ - name : Install the project
43+ run : uv sync --all-extras --dev
44+
45+ - name : Install dev dependencies
46+ run : uv pip install -r dev-requirements.txt
47+
48+ - name : Run tests
49+ run : uv run pytest -v
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ setuptools_scm
55oscrypto
66cryptography
77parameterized
8+ pytest==8.3.4
89ruff==0.8.2
910sphinx
1011sphinx-rtd-theme
You can’t perform that action at this time.
0 commit comments