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"