40 lines
774 B
YAML
40 lines
774 B
YAML
name: Python
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
tests:
|
|
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 PyYAML
|
|
- name: Build BLST
|
|
run: |
|
|
cd src
|
|
make blst
|
|
- name: Build CKZG
|
|
run: |
|
|
cd src
|
|
make
|
|
- name: Build Python bindings
|
|
run: |
|
|
cd bindings/python
|
|
make install
|
|
- name: Test
|
|
run: |
|
|
cd bindings/python
|
|
make test
|