Skip to content

Commit

Permalink
Cache dbt and Python requirements in install_dbt_requirements action
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane committed Aug 8, 2023
1 parent 5bdf9a2 commit 4148bb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/install_dbt_requirements/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ runs:
uses: actions/setup-python@v4
with:
python-version: 3.x
cache: pip

- name: Install python requirements
run: python -m pip install -r ${{ inputs.requirements_file_path }}
shell: bash

- name: Cache dbt requirements
uses: actions/cache@v3
with:
path: ${{ inputs.dbt_project_dir }}/dbt_packages
key: dbt-${{ hashFiles(inputs.dbt_project_dir + '/packages.yml') }}

- name: Install dbt requirements
run: dbt deps
working-directory: ${{ inputs.dbt_project_dir }}
Expand Down

0 comments on commit 4148bb1

Please sign in to comment.