From 2f252f89abe680c051a50df6a9c648189631051e Mon Sep 17 00:00:00 2001 From: Nico Jehle Date: Mon, 9 Sep 2024 15:29:37 +0000 Subject: [PATCH] dim-testsuit: add target to install non-editable dev dependencies work around issue on old pip: `ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /__w/dim/dim/dim`, we do not need editable anyway --- .github/workflows/run_tests.yml | 2 +- dim-testsuite/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 9076f056..336106a0 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -36,7 +36,7 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - name: Prepare virtual environment - run: make install-dev + run: make install-test working-directory: dim-testsuite - name: Create DIM configuration directory run: mkdir -p /etc/dim diff --git a/dim-testsuite/Makefile b/dim-testsuite/Makefile index f57226ee..0d4345a5 100644 --- a/dim-testsuite/Makefile +++ b/dim-testsuite/Makefile @@ -49,6 +49,10 @@ install-dev: install-deps-local-editable ${VPIP} install -r ../dim/requirements-dev.txt ${VPIP} install -r ../ndcli/requirements-dev.txt +install-test: install + ${VPIP} install -r ../dim/requirements-dev.txt + ${VPIP} install -r ../ndcli/requirements-dev.txt + db-clear: FLASK_APP=${FLASK_APP} ${VDIR}/bin/flask db clear