Skip to content

Commit

Permalink
Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Feb 8, 2024
1 parent 4b0ac5b commit 9fad1b5
Show file tree
Hide file tree
Showing 10 changed files with 438 additions and 416 deletions.
141 changes: 70 additions & 71 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

name: Tests

on:
push:
branches:
- main
tags:
- '**'
- '**'
pull_request:
branches:
- '**'
Expand All @@ -22,47 +21,47 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']

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

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

- name: Update pip
run: |
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Set up rust
uses: dtolnay/rust-toolchain@stable
- name: Set up rust
uses: dtolnay/rust-toolchain@stable

- name: setup venv
run: |
python -m venv venv
- name: setup venv
run: |
python -m venv venv
- uses: chia-network/actions/activate-venv@main
- uses: chia-network/actions/activate-venv@main

- name: Install dependencies
run: |
python -m pip install maturin
rustup target add x86_64-unknown-linux-musl
python -m pip install pytest
python -m pip install mypy
- name: Install dependencies
run: |
python -m pip install maturin
rustup target add x86_64-unknown-linux-musl
python -m pip install pytest
python -m pip install mypy
- name: Build
run: |
python -m pip install clvm_tools colorama blspy chia-blockchain==2.1.2 clvm==0.9.8
maturin develop --release -m wheel/Cargo.toml
- name: Build
run: |
python -m pip install clvm_tools colorama blspy chia-blockchain==2.1.2 clvm==0.9.8
maturin develop --release -m wheel/Cargo.toml
- name: python mypy
run: |
mypy --ignore-missing-imports tests
- name: python mypy
run: |
mypy --ignore-missing-imports tests
- name: python tests
run: |
pytest tests
- name: python tests
run: |
pytest tests
generator-benchmarks:
name: Generator performance
Expand All @@ -73,44 +72,44 @@ jobs:
python-version: ['3.10', '3.11']

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

- uses: chia-network/actions/setup-python@main
name: Install Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- 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: Set up rust
uses: dtolnay/rust-toolchain@stable

- name: setup venv
run: |
python -m venv venv
- name: setup venv
run: |
python -m venv venv
- uses: chia-network/actions/activate-venv@main
- 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: 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: Build
run: |
maturin develop --release -m wheel/Cargo.toml
- name: test generators
run: |
cd tests
./test-generators.py
- name: test generators
run: |
cd tests
./test-generators.py
- name: Run cost checks
run: |
cd tests
./generate-programs.py
./run-programs.py
- name: Run cost checks
run: |
cd tests
./generate-programs.py
./run-programs.py
benchmarks:
name: rust benchmarks
Expand All @@ -119,13 +118,13 @@ jobs:
fail-fast: false

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

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

- name: cargo bench
run: |
cargo bench --workspace --exclude chia_rs
- name: cargo bench
run: |
cargo bench --workspace --exclude chia_rs
Loading

0 comments on commit 9fad1b5

Please sign in to comment.