Skip to content

Commit 5970ae9

Browse files
committed
CI: clean the codspeed action yml
1 parent 7aff5a4 commit 5970ae9

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/codspeed-bench.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -130,42 +130,21 @@ jobs:
130130

131131
- name: Build the wrapper
132132
run: |
133-
echo $PWD
134-
ls -l
135133
cd benchmark/pybench
136134
export PKG_CONFIG_PATH=$PWD
137-
echo $PWD
138-
ls -l
139135
meson setup build --prefix=$PWD/build-install
140136
meson install -C build
141137
#
142-
#
143138
# sanity check
144-
ls -l build-install/lib/python3.12/site-packages/openblas_wrap/
145-
ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
146-
# This is needed because the build-install/_flapackXXX.so file
147-
# does not link to scipy_openblas32
148-
echo ">>> manually copy the .so from build -> build-install"
149-
cp build/openblas_wrap/*.so build-install/lib/python${{matrix.pyver}}/site-packages/openblas_wrap
150-
ldd build-install/lib/python3.12/site-packages/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
151-
echo "Inside the build/: "
152-
ldd build/openblas_wrap/_flapack.cpython-312-x86_64-linux-gnu.so
153-
#
154139
cd build/openblas_wrap
155140
python -c'import _flapack; print(dir(_flapack))'
156141
157142
- name: Check the wrapper is importable
158143
run: |
159-
cd benchmark/pybench
160-
export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages/
161-
echo "PYTHONPATH = "$PYTHONPATH
162-
ls -l $PYTHONPATH
163-
ls -l $PYTHONPATH/openblas_wrap
144+
export PYTHONPATH=$PWD/build-install/lib/python${{matrix.pyver}}/site-packages
164145
cd $PYTHONPATH/openblas_wrap
165-
python -c'import _flapack; print(dir(_flapack))'
166-
python -c 'import openblas_wrap as o; print(f"{o.__file__ = }")'
167-
pip install pytest-benchmark
168146
ls -l ${{ github.workspace }}/benchmark/pybench/benchmarks/
147+
pip install pytest-benchmark
169148
pytest ${{ github.workspace }}/benchmark/pybench/benchmarks/bench_blas.py
170149
171150
- name: Run benchmarks

0 commit comments

Comments
 (0)