Skip to content

convert blspy to chia_rs, update chia to 2.1.4 #72

convert blspy to chia_rs, update chia to 2.1.4

convert blspy to chia_rs, update chia to 2.1.4 #72

name: Test against chia-blockchain main
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true
jobs:
build:
name: All tests@main
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 4
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Test code with pytest
run: |
python3 -m venv venv
. ./venv/bin/activate
sed -i 's/chia-blockchain.*/chia-blockchain @ git+https:\/\/github.com\/Chia-Network\/chia-blockchain.git@main\",/g' setup.py
pip install ."[dev]"
./venv/bin/chia init
./venv/bin/pytest tests/ cdv/examples/tests -s -v --durations 0