From 6f0eac3b725be7d5abc3b877d4e0f2d115d187ca Mon Sep 17 00:00:00 2001 From: Adam Fisher Date: Wed, 20 Sep 2023 17:30:00 +0300 Subject: [PATCH] fix: versions on github actions --- noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index c8b9e09c..9eae1ca4 100755 --- a/noxfile.py +++ b/noxfile.py @@ -23,6 +23,7 @@ NonSemanticVersion, SemanticVersion, TestedVersions, + parse_version, should_test_only_untested_versions, ) @@ -71,7 +72,8 @@ def python_versions() -> Optional[List[str]]: # In local, try all supported python versions. # Anyway create a venv. if os.getenv("CI", str(False)).lower() == "true": - return [platform.python_version()] + python_version = parse_version(platform.python_version()) + return [f"{python_version.major}.{python_version.minor}"] with open( os.path.dirname(__file__) + "/.github/workflows/version-testing.yml"