Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Sassi committed May 29, 2024
1 parent a58cec3 commit 244716c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
# Makes it easy to create virtual environments for different versions of dbt
ADAPTERS = sqlite duckdb

everything: .venv-dbt10/bin/python .venv-dbt11/bin/python .venv-dbt12/bin/python .venv-dbt13/bin/python .venv-dbt14/bin/python
everything: .venv-dbt10/bin/python .venv-dbt11/bin/python .venv-dbt12/bin/python .venv-dbt13/bin/python .venv-dbt14/bin/python .venv-dbt15/bin/python
.PHONY: everything

.venv-dbt10/bin/python:
python -m venv .venv-dbt10
.venv-dbt10/bin/pip install --upgrade wheel setuptools pip
.venv-dbt10/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt10/bin/pip install "dbt-$$adapter>=1.0.0,<1.1.0"; \
.venv-dbt10/bin/pip install "dbt-$$adapter>=1.0.0,<1.1.0" "dbt-core>=1.0,<1.1.0"; \
done

.venv-dbt11/bin/python:
python -m venv .venv-dbt11
.venv-dbt11/bin/pip install --upgrade wheel setuptools pip
.venv-dbt11/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt11/bin/pip install "dbt-$$adapter>=1.1.0,<1.2.0"; \
.venv-dbt11/bin/pip install "dbt-$$adapter>=1.1.0,<1.2.0" "dbt-core>=1.1.0,<1.2.0"; \
done

.venv-dbt12/bin/python:
python -m venv .venv-dbt12
.venv-dbt12/bin/pip install --upgrade wheel setuptools pip
.venv-dbt12/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt12/bin/pip install "dbt-$$adapter>=1.2.0,<1.3.0"; \
.venv-dbt12/bin/pip install "dbt-$$adapter>=1.2.0,<1.3.0" "dbt-core>=1.2.0,<1.3.0"; \
done

.venv-dbt13/bin/python:
python -m venv .venv-dbt13
.venv-dbt13/bin/pip install --upgrade wheel setuptools pip
.venv-dbt13/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt13/bin/pip install "dbt-$$adapter>=1.3.0,<1.4.0"; \
.venv-dbt13/bin/pip install "dbt-$$adapter>=1.3.0,<1.4.0" "dbt-core>=1.3.0,<1.4.0"; \
done

.venv-dbt14/bin/python:
python -m venv .venv-dbt14
.venv-dbt14/bin/pip install --upgrade wheel setuptools pip
.venv-dbt14/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt14/bin/pip install "dbt-$$adapter>=1.4.0,<1.5.0"; \
.venv-dbt14/bin/pip install "dbt-$$adapter>=1.4.0,<1.5.0" "dbt-core>=1.4.0,<1.5.0"; \
done

# Relaxed constraint to allow testing dbt-core 1.5.0 with sqlite
Expand All @@ -50,8 +50,7 @@ everything: .venv-dbt10/bin/python .venv-dbt11/bin/python .venv-dbt12/bin/python
.venv-dbt15/bin/pip install --upgrade wheel setuptools pip
.venv-dbt15/bin/pip install pytest WebTest .
for adapter in $(ADAPTERS); do \
.venv-dbt15/bin/pip install "dbt-$$adapter>=1.4.0,<1.6.0"; \
.venv-dbt15/bin/pip install "dbt-core>=1.5.0,<1.6.0"; \
.venv-dbt15/bin/pip install "dbt-$$adapter>=1.4.0,<1.6.0" "dbt-core>=1.5.0,<1.6.0"; \
done

clean:
Expand Down

0 comments on commit 244716c

Please sign in to comment.