2023-03-13 10:42:12 +00:00
|
|
|
name: Python
|
2023-01-13 16:25:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
2023-01-13 16:25:27 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install py_ecc
|
2023-03-04 18:24:03 +00:00
|
|
|
pip install PyYAML
|
2023-01-13 16:25:27 +00:00
|
|
|
- name: Build BLST
|
|
|
|
run: |
|
|
|
|
cd src
|
|
|
|
make blst
|
|
|
|
- name: Build CKZG
|
|
|
|
run: |
|
|
|
|
cd src
|
|
|
|
make
|
|
|
|
- name: Build Python bindings
|
|
|
|
run: |
|
|
|
|
cd bindings/python
|
2023-02-07 22:13:54 +00:00
|
|
|
make install
|
2023-01-13 16:25:27 +00:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
cd bindings/python
|
|
|
|
make test
|
|
|
|
- name: ECC test
|
|
|
|
run: |
|
|
|
|
cd bindings/python
|
|
|
|
make ecc_test
|