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 fd58b31
Show file tree
Hide file tree
Showing 6 changed files with 1,434 additions and 2,720 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,23 @@ 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: 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: Install uv
uses: astral-sh/setup-uv@v5
- name: 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 pip install -U --verbose "dbt-core==$DBT_CORE_VERSION" "dbt-${DBT_TARGET}==$DBT_CORE_VERSION"
env:
UV_NO_SYNC: true
DBT_CORE_VERSION: ${{ matrix.dbt_core }}
DBT_TARGET: ${{ matrix.db_target }}
- name: Test
run: ./run test "${DBT_TARGET}"
env:
UV_NO_SYNC: true
DBT_TARGET: ${{ matrix.db_target }}
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
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 fd58b31

Please sign in to comment.