heptapod-ci: run test with python3 too
Python3 is the future^W present, it is important to run tests with it too.
Differential Revision: https://phab.mercurial-scm.org/D8013
--- a/contrib/heptapod-ci.yml Fri Jan 24 23:22:29 2020 +0100
+++ b/contrib/heptapod-ci.yml Sat Nov 16 12:25:53 2019 +0100
@@ -7,7 +7,19 @@
- hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
- cd /tmp/mercurial-ci/
-checks-py2:
+variables:
+ PYTHON: python
+
+.runtests_template: &runtests
script:
- cd tests/
- - python run-tests.py --color=always --time test-check-*.*
+ - echo "python used, $PYTHON"
+ - $PYTHON run-tests.py --color=always --time test-check-*.*
+
+checks-py2:
+ <<: *runtests
+
+checks-py3:
+ <<: *runtests
+ variables:
+ PYTHON: python3