Skip to content

Commit

Permalink
CI: Disable Windows Python build for now; Attempt to run C++ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
selimnairb committed Nov 28, 2023
1 parent f94bbdd commit 202e8e0
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/testwindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,18 @@ jobs:
cmake -B build -G $env:VS_VERSION -S . $env:CMAKE_INSTALL_PREFIX -DCMAKE_BUILD_TYPE=Release `
-DBAG_BUILD_TESTS:BOOL=ON -DBAG_CI=ON
cmake --build build --config Release --target install
# Build and install bagPy Python wheel
$activate_cmd="$env:BAG_INSTALL_PATH\Scripts\Activate.ps1"
dir $activate_cmd
echo "Attempting to activate Python environment using script: $activate_cmd ..."
& $activate_cmd
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
$env:CMAKE_PREFIX_PATH=$env:BAG_INSTALL_PATH
$env:LIBXML2_LIBRARY="$env:BAG_INSTALL_PATH\Lib"
$env:LIBXML2_INCLUDE_DIR="$env:BAG_INSTALL_PATH\Include\libxml2"
python -m pip wheel -w .\wheel\ .\build\api\swig\python
python -m pip install .\wheel\bagPy-*.whl
# TODO: Build and install bagPy Python wheel
# $activate_cmd="$env:BAG_INSTALL_PATH\Scripts\Activate.ps1"
# dir $activate_cmd
# echo "Attempting to activate Python environment using script: $activate_cmd ..."
# & $activate_cmd
# python -m pip install --upgrade pip
# python -m pip install -r requirements.txt
# $env:CMAKE_PREFIX_PATH=$env:BAG_INSTALL_PATH
# $env:LIBXML2_LIBRARY="$env:BAG_INSTALL_PATH\Lib"
# $env:LIBXML2_INCLUDE_DIR="$env:BAG_INSTALL_PATH\Include\libxml2"
# python -m pip wheel -w .\wheel\ .\build\api\swig\python
# python -m pip install .\wheel\bagPy-*.whl
# Run C++ tests
$env:BAG_SAMPLES_PATH="$env:GITHUB_WORKSPACE\examples\sample-data"
.\build\tests\bag_tests

0 comments on commit 202e8e0

Please sign in to comment.