Skip to content

Python 3.11 #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

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

- uses: actions/setup-python@v4
name: Install Python 3.9
name: Install Python ${{ matrix.python-version }}
with:
python-version: 3.9
python-version: ${{ format('{0}.0-alpha - {0}.X', matrix.python-version) }}

- name: Update pip
run: |
Expand Down Expand Up @@ -83,17 +84,22 @@ jobs:

max-cost-checks:
name: Cost checks
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

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

- uses: actions/setup-python@v4
name: Install Python 3.9
- uses: actions/setup-python@v2
name: Install Python ${{ matrix.python-version }}
with:
python-version: 3.9
python-version: ${{ format('{0}.0-alpha - {0}.X', matrix.python-version) }}

- name: Update pip
run: |
Expand All @@ -109,7 +115,27 @@ jobs:
python -m pip install maturin
rustup target add x86_64-unknown-linux-musl

- name: Build Windows
if: startsWith(matrix.os, 'windows')
run: |
python -m venv venv
. .\venv\Scripts\Activate.ps1
ln -s venv\Scripts\Activate.ps1 activate
git clone https://github.com/Chia-Network/clvm_tools.git --branch=main --single-branch
python -m pip install ./clvm_tools
python -m pip install colorama
maturin develop -m wheel/Cargo.toml --release

- name: Run cost checks
if: startsWith(matrix.os, 'windows')
run: |
. .\venv\Scripts\Activate.ps1
cd tests
./generate-programs.py
./run-programs.py

- name: Build
if: ${{ !startsWith(matrix.os, 'windows') }}
env:
CC: gcc
run: |
Expand All @@ -122,6 +148,7 @@ jobs:
maturin develop -m wheel/Cargo.toml --release --features=openssl

- name: Run cost checks
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
. ./activate
cd tests
Expand Down