Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable kubernetes tests for dbt>=1.8 #1364

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test

on:
push: # Run on pushes to the default branch
branches: [main]
branches: [main, enable-kubernetes-test]
pankajastro marked this conversation as resolved.
Show resolved Hide resolved
pull_request_target: # Also run on pull requests originated from forks
branches: [main]

Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11" ]
python-version: [ "3.12" ]
airflow-version: [ "2.10" ]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions dev/Dockerfile.postgres_profile_docker_k8s
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM python:3.11
FROM python:3.12

RUN pip install dbt-postgres==1.8.2 psycopg2==2.9.3 pytz
RUN pip install --force-reinstall 'dbt-postgres>=1.8'
RUN pip install --force-reinstall dbt-adapters

ENV POSTGRES_DATABASE=postgres
ENV POSTGRES_DB=postgres
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/kubernetes-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
set -x
set -e

# TODO: https://github.com/astronomer/astronomer-cosmos/issues/1344
pip install 'dbt-postgres<1.8' 'psycopg2==2.9.3' 'pytz'
pip install --force-reinstall 'dbt-postgres>=1.8'
pip install --force-reinstall dbt-adapters

# Create a Kubernetes secret named 'postgres-secrets' with the specified literals for host and password
kubectl create secret generic postgres-secrets \
Expand Down
Loading