diff --git a/.github/actions/install_dbt_requirements/action.yaml b/.github/actions/install_dbt_requirements/action.yaml index 743872b27..d93893e8a 100644 --- a/.github/actions/install_dbt_requirements/action.yaml +++ b/.github/actions/install_dbt_requirements/action.yaml @@ -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 }}