Skip to content

Commit

Permalink
Change to upload the state to the recce cloud
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <celu@infuseai.io>
  • Loading branch information
popcornylu committed Jun 17, 2024
1 parent 213e6d7 commit 145da50
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/recce-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
paths:
- warehouse/dbt/**

permissions:
contents: write

env:
# dbt env variables used in your dbt profiles.yml
DBT_PROFILES_DIR: ./
Expand All @@ -22,6 +25,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name:
run: |
git remote -v
git checkout dbt/repo-stats
git branch --show-current
- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -35,7 +46,8 @@ jobs:
poetry run which dbt
- name: Install Recce
run: poetry run pip install recce-nightly
# run: poetry run pip install recce-nightly
run: pip install git+https://github.com/DataRecce/recce.git@bug/fetch_repo_in_the_cloud_mode

- name: Add packages.yml file
run: |
Expand All @@ -61,20 +73,13 @@ jobs:
run: |
source $(poetry env info --path)/bin/activate
dbt deps
dbt build --target ${{ env.DBT_CURRENT_TARGET}}
# dbt build --target ${{ env.DBT_CURRENT_TARGET}}
dbt docs generate --target ${{ env.DBT_CURRENT_TARGET}}
env:
DBT_CURRENT_TARGET: "dev"

- name: Run Recce CI
run: poetry run recce run

- name: Archive Recce State File
uses: actions/upload-artifact@v4
id: recce-artifact-uploader
with:
name: recce-state-file
path: recce_state.json
run: poetry run recce run --cloud

- name: Prepare Recce Summary
id: recce-summary
Expand Down

0 comments on commit 145da50

Please sign in to comment.