Skip to content

Commit

Permalink
fix benchmark and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Oct 9, 2024
1 parent 631bfaf commit 00e8350
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Benchmarks

on: [push, pull_request]
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

env:
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down
Expand Down Expand Up @@ -41,13 +49,12 @@ jobs:
- name: Install Plugin
run: |
brew install jpeg-xl
brew --prefix jpeg-xl
brew --prefix highway
brew --prefix brotli
export DEP_JXL_LIB=$(brew --prefix jpeg-xl)'/lib'
export DEP_BROTLI_LIB=$(brew --prefix brotli)'/lib'
export DEP_HWY_LIB=$(brew --prefix highway)'/lib'
source venv/bin/activate
pip install maturin
maturin develop --features dynamic
- name: Run benchmarks scripts
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Test Python

on: [push, pull_request]
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

env:
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down
Expand Down Expand Up @@ -40,7 +48,11 @@ jobs:

- name: Install Plugin
run: |
brew install jpeg-xl highway brotli
brew install jpeg-xl
export DEP_JXL_LIB=$(brew --prefix jpeg-xl)'/lib'
export DEP_BROTLI_LIB=$(brew --prefix brotli)'/lib'
export DEP_HWY_LIB=$(brew --prefix highway)'/lib'
source venv/bin/activate
pip install maturin
maturin develop --features dynamic
Expand Down

0 comments on commit 00e8350

Please sign in to comment.