Repository: xtensor-stack/xtensor-python (language: python)

Issue:
Fix Windows CI
WIndows CI is currently disabled because of weird compilation issues that should be investigated.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 4137294..6743937 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -1,9 +1,9 @@
 name: Windows
 on:
-  #workflow_dispatch:
-  #pull_request:
-  #push:
-  #  branches: [master]
+  workflow_dispatch:
+  pull_request:
+  push:
+    branches: [master]
 concurrency:
   group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
   cancel-in-progress: true


Test patch:
diff --git a/test/test_common.hpp b/test/test_common.hpp
index 07a0992..3b4ed85 100644
--- a/test/test_common.hpp
+++ b/test/test_common.hpp
@@ -160,7 +160,10 @@ namespace xt
     {
         EXPECT_TRUE(std::equal(vec.shape().cbegin(), vec.shape().cend(), result.shape().cbegin()));
         EXPECT_TRUE(std::equal(vec.strides().cbegin(), vec.strides().cend(), result.strides().cbegin()));
+// TODO: check why this does not build on modern MSVC compilers
+#ifndef WIN32
         EXPECT_TRUE(std::equal(vec.backstrides().cbegin(), vec.backstrides().cend(), result.backstrides().cbegin()));
+#endif
         EXPECT_EQ(vec.size(), result.size());
         if (compare_layout)
         {