summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelke van den Bos <eelkevdbos@gmail.com>2022-05-12 13:46:48 -0400
committerEelke van den Bos <eelkevdbos@gmail.com>2022-05-12 13:46:48 -0400
commit65056f0dc44d7d3ec59a30952e2f446dc771331e (patch)
tree9f7eedd13bf35cf3133873cf08686a39b7e190ba
parent2cd3124302ee48afb63f2917788dfe36aa9007b7 (diff)
downloadcroniter-65056f0dc44d7d3ec59a30952e2f446dc771331e.tar.gz
Support x.xx python versions in CI
-rw-r--r--.github/workflows/cicd.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml
index 543eb50..7f5956a 100644
--- a/.github/workflows/cicd.yml
+++ b/.github/workflows/cicd.yml
@@ -19,7 +19,7 @@ jobs:
pip install -r requirements/test.txt
- name: Test with pytest
run: |
- pyver=$(python --version 2>&1 | awk '{print substr($2, 0, 3)}');
+ pyver=$(python --version 2>&1 | awk '{print substr($2, 0, 4)}' | awk '{ sub(/[ \t]+$/, ""); print }');
case $pyver in
2.7) tox -e "py${pyver//\.}-{std,coverage}";;
*) tox -e "py${pyver//\.}-std";;