From 99bb72d029755de401cdc308e5cef536c53f5acf Mon Sep 17 00:00:00 2001 From: finlayclark Date: Tue, 17 Sep 2024 14:55:39 +0100 Subject: [PATCH] Update makefile to work with micromamba on github actions --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2b8931..9f2acee 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PACKAGE_NAME := red PACKAGE_DIR := red -CONDA_ENV_RUN = conda run --no-capture-output --name $(PACKAGE_NAME) +CONDA_ENV_RUN = $(if $(GITHUB_ACTIONS),micromamba run -n $(PACKAGE_NAME),conda run --no-capture-output --name $(PACKAGE_NAME)) TEST_ARGS := -v --cov=$(PACKAGE_NAME) --cov-report=term --cov-report=xml --junitxml=unit.xml --color=yes