Skip to content

Commit 5a9d34b

Browse files
authored
Update Stateful Signature Pipeline (#126)
* Update dependencies. Signed-off-by: Guiliano99 [email protected] Signed-off-by: Guiliano99 <[email protected]> * Add Serialization utils. Signed-off-by: Guiliano99 <[email protected]> * Add XMSS and XMSS^MT keys. Signed-off-by: Guiliano99 <[email protected]> * Update STFL tests to load some keys. Signed-off-by: Guiliano99 <[email protected]> * Run ruff. Signed-off-by: Guiliano99 <[email protected]> * Update serialize.py Signed-off-by: Guiliano99 <[email protected]> * Fix version check for latest. Signed-off-by: Guiliano99 <[email protected]> * Test gen_or_load_stateful_signature_key deactivate file writing. Signed-off-by: Guiliano99 <[email protected]> * Add pipeline sync. Signed-off-by: Guiliano99 <[email protected]> * Update simplified tests. Signed-off-by: Guiliano99 <[email protected]> * Update serialize.py. Signed-off-by: Guiliano99 <[email protected]> * Update serialize.py. Signed-off-by: Guiliano99 <[email protected]> * Update oqs error message. Signed-off-by: Guiliano99 <[email protected]> * Update oqs error message. Signed-off-by: Guiliano99 <[email protected]> * Update STFL tests. Signed-off-by: Guiliano99 <[email protected]> * Update OQS typing. Signed-off-by: Guiliano99 <[email protected]> * Add STFL private key size error msg. Signed-off-by: Guiliano99 <[email protected]> * Clean gen_or_load_stateful_signature_key. Signed-off-by: Guiliano99 <[email protected]> * Run ruff. Signed-off-by: Guiliano99 <[email protected]> * Fix code. Signed-off-by: Guiliano99 <[email protected]> * Revert "Update dependencies." This reverts commit 9828bd3. Signed-off-by: Guiliano99 <[email protected]> * Update dependencies. Signed-off-by: Guiliano99 <[email protected]> (cherry picked from commit 9828bd3) Signed-off-by: Guiliano99 <[email protected]> * Update Pipeline to fix duplicated tests. Signed-off-by: Guiliano99 <[email protected]> * Update Pipeline to fix duplicated tests. Signed-off-by: Guiliano99 <[email protected]> * Update Pipeline to fix duplicated tests. Signed-off-by: Guiliano99 <[email protected]> --------- Signed-off-by: Guiliano99 [email protected] Signed-off-by: Guiliano99 <[email protected]>
1 parent 099292d commit 5a9d34b

22 files changed

+271
-28
lines changed

.github/workflows/python_detailed.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ env:
1717
WIN_LIBOQS_INSTALL_PATH: C:\liboqs
1818
VERSION: 0.14.0
1919

20+
concurrency:
21+
group: test-python-detailed-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
22+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23+
2024
jobs:
2125
build:
2226
strategy:
@@ -66,6 +70,8 @@ jobs:
6670
- name: Run unit tests POSIX
6771
if: matrix.os != 'windows-latest'
6872
run: |
73+
# Ensure dev extras (nose2, pyasn1, etc.) are present
74+
uv sync --extra dev
6975
uv run nose2 --verbose
7076
7177
- name: Install liboqs Windows
@@ -96,4 +102,6 @@ jobs:
96102
if: matrix.os == 'windows-latest'
97103
run: |
98104
set PATH=%PATH%;${{env.WIN_LIBOQS_INSTALL_PATH}}\bin
105+
rem Ensure dev extras (nose2, pyasn1, etc.) are present
106+
uv sync --extra dev
99107
uv run nose2 --verbose

.github/workflows/python_simplified.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
permissions:
1212
contents: read
1313

14+
concurrency:
15+
group: test-python-simplified-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
16+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
18+
1419
jobs:
1520
build:
1621
strategy:
@@ -38,7 +43,10 @@ jobs:
3843
uv run examples/sig.py
3944
uv run examples/rand.py
4045
uv run examples/stfl_sig.py
46+
uv run oqs/serialize.py
4147
4248
- name: Run unit tests
4349
run: |
50+
# Ensure dev extras (nose2, pyasn1, etc.) are present
51+
uv sync --extra dev
4452
uv run nose2 --verbose

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,4 @@ pyvenv.cfg
121121

122122
# uv
123123
/uv.lock
124+
/data/tmp_keys/
4.11 KB
Binary file not shown.
2.01 KB
Binary file not shown.
2.61 KB
Binary file not shown.
5.02 KB
Binary file not shown.
2.01 KB
Binary file not shown.
2.61 KB
Binary file not shown.
2.14 KB
Binary file not shown.

0 commit comments

Comments
 (0)