-
Notifications
You must be signed in to change notification settings - Fork 50
67 lines (56 loc) · 1.35 KB
/
python.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: GitHub actions
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
repository_dispatch:
types: ["**"]
permissions:
contents: read
env:
BUILD_TYPE: Debug
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nose2
- name: Run examples POSIX
if: matrix.os != 'windows-latest'
run: |
pip install .
python examples/kem.py
echo
python examples/sig.py
echo
python examples/rand.py
- name: Run unit tests POSIX
if: matrix.os != 'windows-latest'
run: |
nose2 --verbose
- name: Run examples Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: |
pip install .
python examples/kem.py
echo.
python examples/sig.py
echo.
python examples/rand.py
- name: Run unit tests Windows
shell: cmd
if: matrix.os == 'windows-latest'
run: |
nose2 --verbose