diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 0619674a3..000000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Tests - -on: - push: - branches: - - main - tags: - - "**" - pull_request: - branches: - - "**" - -jobs: - 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 - rustup target add x86_64-unknown-linux-musl - - - 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 diff --git a/.github/workflows/python-wheel.yml b/.github/workflows/python-wheel.yml index ea1a19b4c..5c1784cfa 100644 --- a/.github/workflows/python-wheel.yml +++ b/.github/workflows/python-wheel.yml @@ -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] }}