wheel: test the built wheel in the windows tests stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 13 Nov 2024 00:52:13 +0100
branchstable
changeset 52235 8cacf7952f14
parent 52234 6c777d25e8a6
child 52236 48f772a5c476
wheel: test the built wheel in the windows tests Same logic as Linux and Mac, we better test that what we build and ship works.
contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml	Sun Nov 10 02:10:56 2024 +0100
+++ b/contrib/heptapod-ci.yml	Wed Nov 13 00:52:13 2024 +0100
@@ -346,6 +346,7 @@
         - echo "python used, $Env:PYTHON"
         - Invoke-Expression "$Env:PYTHON -V"
         - echo "$Env:HGTESTS_ALLOW_NETIO"
+        - echo "$Env:WHEEL_ARG"
         - echo "$Env:FLAVOR"
         - echo "$Env:FILTER"
         - echo "$Env:RUNTEST_ARGS"
@@ -360,12 +361,14 @@
             && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
                $PYTHON tests/run-tests.py
                --color=always
+               $WHEEL_ARG
                $FLAVOR
                --port `expr 19051 + 1009 "*" $CI_CONCURRENT_ID`
                $FILTER
                $RUNTEST_ARGS;
           '
     variables:
+      WHEEL_ARG: ""
       RUNTEST_ARGS: ""
       FLAVOR: ""
       FILTER: "--blacklist ${TMP_WORK_DIR}/check-tests.txt --blacklist ${TMP_WORK_DIR}/windows-skip.txt"
@@ -374,6 +377,13 @@
     extends: .windows-runtests
     variables:
         RUNTEST_ARGS: "-j 8"
+        WHEEL_ARG: "--hg-wheel wheels/win32/mercurial-*-cp39-cp39-win_amd64.whl"
+    needs:
+      - job: build-c-wheel-windows
+        parallel:
+          matrix:
+            - CIBW_BUILD: "cp39-*"
+              CIBW_ARCHS: "AMD64"
 
 windows-pyox:
     extends: .windows-runtests