Skip to content

Commit

Permalink
Switch from pip -> uv (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
akan72 authored Jun 25, 2024
1 parent 933d325 commit f24f508
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .github/actions/init-dbt/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ name: init dbt
runs:
using: "composite"
steps:
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'requirements.txt'

# Open PR to actions/setup-python for supporting uv caching https://github.com/actions/setup-python/pull/818
# Related GH issue https://github.com/actions/setup-python/issues/822
#
# - uses: actions/setup-python@v5
# with:
# cache: 'pip'
# cache-dependency-path: 'requirements.txt'
- name: Set up dependencies
shell: bash
run: |
pip install pip==23.1.2
pip install pip-tools==6.13.0
pip install -r requirements.txt
pip install uv==0.2.15
uv pip install -r requirements.txt --system
- name: Download DBT Manifest
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Compile
run: |
dbt deps
dbt compile
dbt compile --threads 16
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
install:
pip3 install -r requirements.txt && dbt deps
source syncenv && uv pip install -r requirements.txt && dbt deps

# As of 4/2/2024, compile and test will be run via Github cloud agent.
# As of 4/2/2024, compile and test will be run via Github cloud agent.
# Running locally without creds is not possible in Snowflake, but we are actively working on a solution.
dbt-compile:
dbt compile
Expand Down

0 comments on commit f24f508

Please sign in to comment.