Skip to content

Commit

Permalink
add more debug to python ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf committed Apr 29, 2024
1 parent 0f80754 commit 849f4e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
path: src-cache/
key: ${{ runner.os }}-build-${{ env.cache-name }}


- name: Build wheels on Linux
if: runner.os == 'Linux'
env:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ jobs:
CIBW_ARCHS_MACOS: "x86_64"
CMAKE_OSX_ARCHITECTURES: "x86_64"
UNIXY_HDF5_VERSION: 1.14.3
MACOSX_DEPLOYMENT_TARGET: "11.0"

steps:
- name: Checkout repository
Expand All @@ -124,10 +123,16 @@ jobs:
ln -s $PWD/src-cache /Users/runner/work/src-cache
bash ci/hdf5-build.sh /Users/runner/work/src-cache
- name: Build and run unittests
- name: Build and run unittests C++ tests
run: |
export CMAKE_PREFIX_PATH=/Users/runner/work/src-cache/install-$CIBW_ARCHS_MACOS/install
export STATIC_HDF5=True
./ci/cpp_test.sh
- name: Build and run unittests python tests
run: |
export CMAKE_PREFIX_PATH=/Users/runner/work/src-cache/install-$CIBW_ARCHS_MACOS/install
export STATIC_HDF5=True
./ci/python_test.sh
7 changes: 6 additions & 1 deletion ci/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ source $BIN/activate
set -u

$BIN/pip -v install --upgrade pip setuptools wheel

which python
which pip
pip debug

$BIN/pip -v install --force .

pushd python/tests
$BIN/python -m unittest -v
$BIN/python -m unittest -v
popd

0 comments on commit 849f4e2

Please sign in to comment.