From 16baefc49132c2124596f3556bfecb688e1de5e1 Mon Sep 17 00:00:00 2001 From: Guilhem de Viry Date: Thu, 11 Sep 2025 00:13:46 +0200 Subject: [PATCH 1/2] chore: fix developer utilities Changes: - deduplicate `test` recipe in Makefile - update `dev` recipe in Makefile - remove dead op from test script --- Makefile | 8 +++++--- run_test.sh | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d842cb9..522e05d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ test: ## Run the integration tests. @./run_test.sh $(target) .PHONY: test_tox -test: ## Run the integration tests with tox +test_tox: ## Run the integration tests with tox @\ tox -e dbt_integration_$(target) @@ -13,8 +13,10 @@ test: ## Run the integration tests with tox dev: ## Installs dbt-* packages in develop mode along with development dependencies. @\ echo "Install dbt-$(target)..."; \ - python -m pip install --upgrade pip setuptools; \ - python -m pip install dbt-core "dbt-$(target)"; + python3 -m venv .venv; \ + .venv/bin/python -m ensurepip; \ + .venv/bin/python -m pip install --upgrade pip setuptools; \ + .venv/bin/python -m pip install dbt-core "dbt-$(target)"; .PHONY: setup-db setup-db: ## Setup Postgres database with docker-compose for system testing. diff --git a/run_test.sh b/run_test.sh index e19bc3d..b2dc660 100755 --- a/run_test.sh +++ b/run_test.sh @@ -1,7 +1,6 @@ #!/bin/bash echo `pwd` -cd integration_tests cp ci/sample.profiles.yml profiles.yml dbt --warn-error deps --target $1 || exit 1 From 38e60d4705e053082787889695c63bb8aba8e627 Mon Sep 17 00:00:00 2001 From: Guilhem de Viry Date: Thu, 11 Sep 2025 12:27:40 +0200 Subject: [PATCH 2/2] remove the correct dead op --- run_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_test.sh b/run_test.sh index b2dc660..f551d0c 100755 --- a/run_test.sh +++ b/run_test.sh @@ -1,7 +1,7 @@ #!/bin/bash echo `pwd` -cp ci/sample.profiles.yml profiles.yml +cd integration_tests dbt --warn-error deps --target $1 || exit 1 dbt --warn-error run-operation create_source_table --target $1 || exit 1