From b1c7ae5376931a3543b7a184592db470621184d9 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Thu, 12 Dec 2024 00:46:11 -0500 Subject: [PATCH] fix: make tests run --- Makefile | 10 ++++++++++ common.mk | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d358561..17cb1ee6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,14 @@ PROJECT=craft_application +ifneq ($(wildcard /etc/os-release),) +include /etc/os-release +export +endif + +ifneq ($(VERSION_CODENAME),) +SETUP_TESTS_EXTRA_ARGS=--group apt-$(VERSION_CODENAME) +endif + +UV_FROZEN=true include common.mk diff --git a/common.mk b/common.mk index aca44e4a..c37684a0 100644 --- a/common.mk +++ b/common.mk @@ -46,7 +46,7 @@ setup: install-uv setup-precommit ## Set up a development environment .PHONY: setup-tests setup-tests: install-uv install-build-deps ##- Set up a testing environment without linters - uv sync --frozen + uv sync --frozen $(SETUP_TESTS_EXTRA_ARGS) .PHONY: setup-lint setup-lint: install-uv install-shellcheck install-lint-build-deps ##- Set up a linting-only environment