Skip to content

Commit fbe818d

Browse files
committed
refactor: Update maturin build process to use wheel installation and upgrade upload-artifact action to v4.
1 parent c4a914b commit fbe818d

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ jobs:
8787
pip install maturin pytest pytest-cov
8888
8989
- name: Build Extension
90-
run: maturin develop --release
90+
run: |
91+
maturin build --release
92+
pip install dist/*.whl --force-reinstall
9193
9294
- name: Run Python Tests
9395
run: |
@@ -211,13 +213,14 @@ jobs:
211213
- name: Install Dependencies
212214
run: |
213215
pip install maturin
214-
maturin develop --release
216+
maturin build --release
217+
pip install dist/*.whl --force-reinstall
215218
216219
- name: Run Benchmarks
217220
run: python benchmarks/run_benchmarks.py
218221

219222
- name: Upload Benchmark Results
220-
uses: actions/upload-artifact@v3
223+
uses: actions/upload-artifact@v4
221224
with:
222225
name: benchmarks
223226
path: BENCHMARKS.md

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
pip install maturin pytest pytest-cov
5454
5555
- name: Build Extension
56-
run: maturin develop
56+
run: |
57+
maturin build --release
58+
pip install dist/*.whl --force-reinstall
5759
5860
- name: Run Tests
5961
run: |

0 commit comments

Comments
 (0)