Skip to content

Commit

Permalink
fix: versions on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
therightstuff committed Sep 20, 2023
1 parent 2d224cf commit 6f0eac3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
NonSemanticVersion,
SemanticVersion,
TestedVersions,
parse_version,
should_test_only_untested_versions,
)

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6f0eac3

Please sign in to comment.