Skip to content

Commit

Permalink
big revert try in the edr command
Browse files Browse the repository at this point in the history
  • Loading branch information
adgramigna committed Nov 29, 2023
1 parent d5a1741 commit 8c3e1f8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/dbt_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -24,26 +24,21 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Checkout dbt repo
uses: actions/checkout@v3
with:
path: levergreen_dbt

- name: Install dbt dependencies
run: dbt deps
run: cd levergreen_dbt && dbt deps

- name: Run dbt models
id: run_dbt_step
run: dbt run
run: cd levergreen_dbt && dbt run
env:
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_HOST: ${{ secrets.PG_HOST }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
PG_USER: ${{ secrets.PG_USER }}

- name: Test dbt models
run: dbt test
run: cd levergreen_dbt && dbt test
env:
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_HOST: ${{ secrets.PG_HOST }}
Expand All @@ -52,7 +47,7 @@ jobs:

- name: Check Freshness of dbt models
if: ${{ always() && steps.run_dbt_step.conclusion == 'success'}}
run: dbt source freshness
run: cd levergreen_dbt && dbt source freshness
env:
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_HOST: ${{ secrets.PG_HOST }}
Expand All @@ -70,7 +65,7 @@ jobs:
with:
warehouse-type: postgres
edr-command:
edr send-report
cd levergreen_dbt && edr send-report
--aws-access-key-id "${{ secrets.AWS_ACCESS_KEY_ID }}"
--aws-secret-access-key "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
--s3-bucket-name "${{ secrets.ELEMENTARY_S3_BUCKET }}"
Expand Down

0 comments on commit 8c3e1f8

Please sign in to comment.