ci: add the option to test more Python versions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 28 Aug 2024 16:35:43 +0200
changeset 51846 243e805e8a2d
parent 51845 cd72a88c5599
child 51847 a3a9251c6081
ci: add the option to test more Python versions It seems like a good idea to be able to test the lowest version we support. And there have been enougth issue with 3.12 that we need to be able to make sur we do not break it. We should probably get a matrix setup for more version and flavor, but that is a simple and efficient start.
contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml	Thu Sep 05 12:37:59 2024 +0200
+++ b/contrib/heptapod-ci.yml	Wed Aug 28 16:35:43 2024 +0200
@@ -66,7 +66,7 @@
     variables:
         CI_CLEVER_CLOUD_FLAVOR: S
 
-test-c:
+test-c: &test_c
     <<: *runtests
     variables:
         RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
@@ -99,6 +99,21 @@
         RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
         TEST_HGMODULEPOLICY: "c"
 
+# note: we should probably get a full matrix for flavor × py-version, but this
+# is a simple start to be able to check if we break the lowest supported
+# version (and 3.12 have been giving us various troubles)
+test-3.8-c:
+    <<: *test_c
+    when: manual  # avoid overloading the CI by default
+    variables:
+        PYTHON: python3.8
+
+test-3.12-c:
+    <<: *test_c
+    when: manual  # avoid overloading the CI by default
+    variables:
+        PYTHON: python3.12
+
 check-pytype:
     extends: .runtests_template
     before_script: