From 64c10ddd6439057913147b97eab0d331b615cef2 Mon Sep 17 00:00:00 2001 From: Vladislav Yatsun Date: Thu, 23 Jul 2026 16:20:49 +0200 Subject: [PATCH 1/2] ci: re-use venv --- Makefile | 5 ++++- noxfile.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 922e8b1..5f5166c 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ VENV_DIR ?= .venv POETRY ?= poetry POETRY_PYTHON ?= python +# Any non-empty CI value (even 'false' or '0') means that CI is enabled +CI ?= + .PHONY: all init_env install clean lint format test -include .env @@ -10,7 +13,7 @@ export all: build init_env: - $(POETRY) env use $(POETRY_PYTHON) + $(if $(CI),,$(POETRY) env use $(POETRY_PYTHON)) install: init_env $(POETRY) install diff --git a/noxfile.py b/noxfile.py index c7eec81..7c9c74c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,10 @@ +import os + import nox nox.options.reuse_existing_virtualenvs = True +if os.environ.get("CI"): + nox.options.default_venv_backend = "none" SRC = ["aidial_client", "tests", "noxfile.py"] From 68546623b60979bff69d6668a775cb1dc1b615f1 Mon Sep 17 00:00:00 2001 From: Vladislav Yatsun Date: Fri, 24 Jul 2026 16:19:51 +0200 Subject: [PATCH 2/2] ci: revert nox re-use venv --- noxfile.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 7c9c74c..c7eec81 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,10 +1,6 @@ -import os - import nox nox.options.reuse_existing_virtualenvs = True -if os.environ.get("CI"): - nox.options.default_venv_backend = "none" SRC = ["aidial_client", "tests", "noxfile.py"]