Skip to content

Commit

Permalink
msys ci: explicitly set PYTHONHOME and PYTHONPATH for c++ and interfa…
Browse files Browse the repository at this point in the history
…ce tests (to workaround msys2/setup-msys2#167)
  • Loading branch information
lkeegan committed Jan 26, 2022
1 parent e24b808 commit f8c479b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -934,10 +934,10 @@ jobs:
run: cmake --build build --target pytest -j 2

- name: C++11 tests
run: cmake --build build --target cpptest -j 2
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build --target cpptest -j 2

- name: Interface test C++11
run: cmake --build build --target test_cmake_build
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build --target test_cmake_build

- name: Clean directory
run: git clean -fdx
Expand All @@ -952,10 +952,10 @@ jobs:
run: cmake --build build2 --target pytest -j 2

- name: C++14 tests
run: cmake --build build2 --target cpptest -j 2
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build2 --target cpptest -j 2

- name: Interface test C++14
run: cmake --build build2 --target test_cmake_build
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build2 --target test_cmake_build

- name: Clean directory
run: git clean -fdx
Expand All @@ -970,7 +970,7 @@ jobs:
run: cmake --build build3 --target pytest -j 2

- name: C++17 tests
run: cmake --build build3 --target cpptest -j 2
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target cpptest -j 2

- name: Interface test C++17
run: cmake --build build3 --target test_cmake_build
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build

0 comments on commit f8c479b

Please sign in to comment.