Skip to content

Commit

Permalink
switch to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Jan 7, 2025
1 parent e79146e commit 9797f54
Show file tree
Hide file tree
Showing 6 changed files with 1,413 additions and 2,711 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,19 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.4.0
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Run Clickhouse
if: ${{ matrix.db_target == 'clickhouse' }}
run: |
docker run -d -p 8123:8123 --name dbt-linreg-clickhouse --ulimit nofile=262144:262144 clickhouse/clickhouse-server
- name: Install dependencies
- name: Base setup
run: |
sudo apt-get update
sudo apt-get install
chmod +x ./run
./run setup
pip install -U "dbt-core==$DBT_CORE_VERSION" "dbt-${DBT_TARGET}"
uv venv
uv pip install -U "dbt-core==$DBT_CORE_VERSION" "dbt-${DBT_TARGET}==$DBT_CORE_VERSION"
env:
DBT_CORE_VERSION: ${{ matrix.dbt_core }}
DBT_TARGET: ${{ matrix.db_target }}
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.4
3.12
Loading

0 comments on commit 9797f54

Please sign in to comment.