diff --git a/noxfile.py b/noxfile.py index a9b5677..23ab73f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,11 +1,19 @@ +import os from pathlib import Path import nox +if os.environ.get("CI", False): + import sys + + PY_VERSIONS = [".".join(f"{v}" for v in sys.version_info[:2])] + +else: + PY_VERSIONS = [f"3.{v}" for v in range(6, 11)] # 3.6 - 3.10 + PROJECT_NAME = "analytix" LIB_DIR = Path(__file__).parent / PROJECT_NAME TEST_DIR = Path(__file__).parent / "tests" -PY_VERSIONS = [f"3.{v}" for v in range(6, 11)] # 3.6 - 3.10 def parse_requirements(path):