diff options
author | Eelke van den Bos <eelkevdbos@gmail.com> | 2022-05-12 13:46:48 -0400 |
---|---|---|
committer | Eelke van den Bos <eelkevdbos@gmail.com> | 2022-05-12 13:46:48 -0400 |
commit | 65056f0dc44d7d3ec59a30952e2f446dc771331e (patch) | |
tree | 9f7eedd13bf35cf3133873cf08686a39b7e190ba | |
parent | 2cd3124302ee48afb63f2917788dfe36aa9007b7 (diff) | |
download | croniter-65056f0dc44d7d3ec59a30952e2f446dc771331e.tar.gz |
Support x.xx python versions in CI
-rw-r--r-- | .github/workflows/cicd.yml | 2 |
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";; |