Skip to content

CI for hydra

CI for hydra #3

Workflow file for this run

name: Hydra backend test
on:
push:
merge_group:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Cache Python packages
uses: actions/cache@v3
with:
path: |
~/.cache/pip
venv
key: ${{ runner.os }}-pip-${{ hashFiles('tools/make/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
echo 'export PYTHONPATH="$PWD:$PYTHONPATH"' >> venv/bin/activate
pip install -r tools/make/requirements.txt
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '^1.17'
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Compile Gnark
run: make go
- name: Compile Rust bindings with maturin
run: |
source venv/bin/activate
cd tools/hades_binding
maturin develop --release
- name: Run pytest
run: |
source venv/bin/activate
pytest tests/hydra/ -n auto