Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit cf18187

Browse files
committed
Add Github Actions CI and tests
1 parent 7172dbc commit cf18187

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install build dependencies
23+
run: sudo apt-get update && sudo apt-get install -y git cmake ninja-build build-essential python3 gcc
24+
25+
- name: Build and install liboqs and Python bindings
26+
run: |
27+
git clone --depth=1 https://github.com/open-quantum-safe/liboqs-python
28+
cd liboqs-python
29+
pip install .
30+
- name: Install Python dependencies
31+
run: pip install -r requirements.txt
32+
33+
- name: Run tests
34+
run: pytest --maxfail=1 --disable-warnings -q

0 commit comments

Comments
 (0)