Skip to content

Commit

Permalink
Move benchmarks into single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 16, 2024
1 parent c6979ae commit 2149b48
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 60 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/benchmark.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/python-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,51 @@ jobs:
maturin develop --release -m wheel/Cargo.toml
pytest tests
generator-benchmarks:
name: Generator performance
runs-on: benchmark
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: chia-network/actions/setup-python@main
name: Install Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}

- name: Set up rust
uses: dtolnay/rust-toolchain@stable

- name: setup venv
run: python -m venv venv

- uses: chia-network/actions/activate-venv@main

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install maturin colorama clvm_tools
- name: Build
run: maturin develop --release -m wheel/Cargo.toml

- name: test generators
run: |
cd tests
./test-generators.py
- name: Run cost checks
run: |
cd tests
./generate-programs.py
./run-programs.py
upload:
name: Upload to PyPI - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
Expand Down

0 comments on commit 2149b48

Please sign in to comment.