Skip to content

Commit

Permalink
Use correct command to upgrade pip in dbt nux
Browse files Browse the repository at this point in the history
Summary:
The previous command did not actually upgrade pip and left us on 20.0.2.

Test Plan:
Go through the NUX with this new YAML, it now correctly backtracks and is able to install the correct set of dependencies.

I'm unclear if I need to do a release of the action for this to be applied or not?
  • Loading branch information
gibsondan committed Aug 28, 2024
1 parent f13c949 commit d3d0bcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion github/serverless/dbt/branch_deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
if: steps.prerun.outputs.result == 'pex-deploy'
# --upgrade-strategy eager picks up newer packages that are required for things to work
run: |
pip install pip --upgrade
python -m pip install pip --upgrade
cd project-repo/${{ env.DAGSTER_PROJECT_NAME }}
pip install . --upgrade --upgrade-strategy eager
dagster-dbt project prepare-and-package --file ${{ env.DAGSTER_PROJECT_NAME }}/project.py
Expand Down
2 changes: 1 addition & 1 deletion github/serverless/dbt/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
if: steps.prerun.outputs.result == 'pex-deploy'
# --upgrade-strategy eager picks up newer packages that are required for things to work
run: |
pip install pip --upgrade
python -m pip install pip --upgrade
cd project-repo/${{ env.DAGSTER_PROJECT_NAME }}
pip install . --upgrade --upgrade-strategy eager
dagster-dbt project prepare-and-package --file ${{ env.DAGSTER_PROJECT_NAME }}/project.py
Expand Down
4 changes: 2 additions & 2 deletions gitlab/dbt/serverless-ci-dbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ deploy-branch:
--author-name "${PR_NAME}"
--author-email $PR_EMAIL)
# install dbt package
- pip install pip --upgrade
- python -m pip install pip --upgrade
- cd $DAGSTER_DBT_PROJECT_DIR/$DAGSTER_DBT_PROJECT_NAME
- pip install . MarkupSafe==2.0.1 'click>8.1.0' 'Jinja2>3.0.0'
- pip install pyOpenSSL --upgrade
Expand Down Expand Up @@ -79,7 +79,7 @@ deploy:
image: ghcr.io/dagster-io/dagster-cloud-action:0.1.43
script:
# install dbt package
- pip install pip --upgrade
- python -m pip install pip --upgrade
- cd $DAGSTER_DBT_PROJECT_DIR/$DAGSTER_DBT_PROJECT_NAME
- pip install . MarkupSafe==2.0.1 'click>8.1.0' 'Jinja2>3.0.0'
- pip install pyOpenSSL --upgrade
Expand Down

0 comments on commit d3d0bcd

Please sign in to comment.