From 235ac8e2af634f806f0c569840af20427564cc8c Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Tue, 2 Apr 2024 04:18:54 +0200 Subject: [PATCH] Fixed GHA --- .github/workflows/linux.yml | 10 ++++++++-- environment-dev.yml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8635064..a0db75e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -31,9 +31,15 @@ jobs: run: cmake -G Ninja -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -DHAVE_ALL_DEPS=ON - name: Generate data for zlib test + working-directory: build/test run: python -c 'import struct, zlib; open("files/test.zl", "wb").write(zlib.compress(struct.pack("4d", 3.0, 2.0, 1.0, 0.0), level=1))' - - name: Build and run xtensor-io tests + - name: Build + working-directory: build + run: cmake --build . --target test_xtensor_io_lib --parallel 8 + + - name: Run tests + working-directory: build run: | export GTEST_FILTER="-xio_gdal_handler.read_vsigs" - make -j2 xtest + ./test/test_xtensor_io_lib diff --git a/environment-dev.yml b/environment-dev.yml index 476e2c3..e7e275d 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -4,6 +4,7 @@ channels: dependencies: # Build dependencies - cmake + - ninja # Host dependencies - openimageio=2.2.7 - libsndfile=1.0.30