Skip to content

Commit 2b36cda

Browse files
committed
testing CI - ditch 3.8 + poetry->uv
1 parent 93530bb commit 2b36cda

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

.github/workflows/test-chdb.yaml

+11-14
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,23 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1818
name: Run tests with Python ${{ matrix.python-version }}
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Install poetry using pipx
23-
run: pipx install poetry
24-
25-
- uses: actions/setup-python@v5
22+
- name: Setup uv
23+
id: setup-uv
24+
uses: astral-sh/setup-uv@v2
2625
with:
27-
python-version: ${{ matrix.python-version }}
28-
cache: "poetry"
26+
enable-cache: true
27+
cache-dependency-glob: "uv.lock"
28+
29+
- name: Install Python ${{ matrix.python-version }}
30+
run: uv python install ${{ matrix.python-version }}
2931

3032
- name: Install dependencies
31-
run: |
32-
poetry config virtualenvs.in-project true
33-
poetry install --no-interaction --no-root
34-
- name: Install library
35-
run: poetry install --no-interaction
33+
run: uv sync -p ${{ matrix.python-version }}
3634

3735
- name: Run chdb tests
38-
run: |
39-
poetry run pytest -vm chdb tests/
36+
run: uv run pytest -vm chdb tests/

.github/workflows/test-clickhouse.yaml

+11-14
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,23 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
25+
python-version: ["3.9", "3.10", "3.11", "3.12"]
2626
name: Run tests with Python ${{ matrix.python-version }}
2727
steps:
2828
- uses: actions/checkout@v4
2929

30-
- name: Install poetry using pipx
31-
run: pipx install poetry
32-
33-
- uses: actions/setup-python@v5
30+
- name: Setup uv
31+
id: setup-uv
32+
uses: astral-sh/setup-uv@v2
3433
with:
35-
python-version: ${{ matrix.python-version }}
36-
cache: "poetry"
34+
enable-cache: true
35+
cache-dependency-glob: "uv.lock"
36+
37+
- name: Install Python ${{ matrix.python-version }}
38+
run: uv python install ${{ matrix.python-version }}
3739

3840
- name: Install dependencies
39-
run: |
40-
poetry config virtualenvs.in-project true
41-
poetry install --no-interaction --no-root
42-
- name: Install library
43-
run: poetry install --no-interaction
41+
run: uv sync -p ${{ matrix.python-version }}
4442

4543
- name: Run chdb tests
46-
run: |
47-
poetry run pytest -vm clickhouse tests/
44+
run: uv run pytest -vm clickhouse tests/

0 commit comments

Comments
 (0)