Skip to content

Commit c4ceada

Browse files
altendkyrichardkiss
authored andcommitted
Python 3.11
1 parent 723f687 commit c4ceada

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [macos-latest, ubuntu-latest, windows-latest]
23+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2324

2425
steps:
2526
- uses: actions/checkout@v3
2627
with:
2728
fetch-depth: 1
2829

2930
- uses: actions/setup-python@v4
30-
name: Install Python 3.9
31+
name: Install Python ${{ matrix.python-version }}
3132
with:
32-
python-version: 3.9
33+
python-version: ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}
3334

3435
- name: Update pip
3536
run: |
@@ -83,17 +84,22 @@ jobs:
8384
8485
max-cost-checks:
8586
name: Cost checks
86-
runs-on: ubuntu-latest
87+
runs-on: ${{ matrix.os }}
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
os: [macos-latest, ubuntu-latest, windows-latest]
92+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
8793

8894
steps:
8995
- uses: actions/checkout@v3
9096
with:
9197
fetch-depth: 1
9298

93-
- uses: actions/setup-python@v4
94-
name: Install Python 3.9
99+
- uses: actions/setup-python@v2
100+
name: Install Python ${{ matrix.python-version }}
95101
with:
96-
python-version: 3.9
102+
python-version: ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}
97103

98104
- name: Update pip
99105
run: |
@@ -109,7 +115,27 @@ jobs:
109115
python -m pip install maturin
110116
rustup target add x86_64-unknown-linux-musl
111117
118+
- name: Build Windows
119+
if: startsWith(matrix.os, 'windows')
120+
run: |
121+
python -m venv venv
122+
. .\venv\Scripts\Activate.ps1
123+
ln -s venv\Scripts\Activate.ps1 activate
124+
git clone https://github.com/Chia-Network/clvm_tools.git --branch=main --single-branch
125+
python -m pip install ./clvm_tools
126+
python -m pip install colorama
127+
maturin develop -m wheel/Cargo.toml --release
128+
129+
- name: Run cost checks
130+
if: startsWith(matrix.os, 'windows')
131+
run: |
132+
. .\venv\Scripts\Activate.ps1
133+
cd tests
134+
./generate-programs.py
135+
./run-programs.py
136+
112137
- name: Build
138+
if: ${{ !startsWith(matrix.os, 'windows') }}
113139
env:
114140
CC: gcc
115141
run: |
@@ -122,6 +148,7 @@ jobs:
122148
maturin develop -m wheel/Cargo.toml --release --features=openssl
123149
124150
- name: Run cost checks
151+
if: ${{ !startsWith(matrix.os, 'windows') }}
125152
run: |
126153
. ./activate
127154
cd tests

0 commit comments

Comments
 (0)