Skip to content

Commit df82046

Browse files
committed
chore: fix dbt ci tests
1 parent 012e542 commit df82046

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ install-dev-dbt-%:
4141
echo "Applying version $$version to all dbt packages"; \
4242
$(SED_INPLACE) -E 's/"(dbt-[^"><=~!]+)[^"]*"/"\1~='"$$version"'"/g' pyproject.toml; \
4343
fi; \
44+
if printf '%s\n' "$$version" | awk -F. '{ if ($$1 == 1 && $$2 >= 3 && $$2 <= 5) exit 0; exit 1 }'; then \
45+
echo "Applying numpy<2 constraint for dbt $$version"; \
46+
$(SED_INPLACE) 's/"numpy"/"numpy<2"/g' pyproject.toml; \
47+
fi; \
4448
$(MAKE) install-dev; \
4549
if [ "$$version" = "1.6.0" ]; then \
4650
echo "Applying overrides for dbt 1.6.0"; \

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ dev = [
7676
"google-cloud-bigquery-storage",
7777
"httpx",
7878
"mypy~=1.13.0",
79+
"numpy",
7980
"pandas-stubs",
8081
"pre-commit",
8182
"psycopg2-binary",

0 commit comments

Comments
 (0)