Skip to content

Commit a821e12

Browse files
committed
integration-tests.yml: Move to uv
1 parent d0490c0 commit a821e12

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/integration-tests.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,31 @@ jobs:
4444
java-version: ${{ matrix.java-version }}
4545
distribution: 'adopt'
4646

47-
- uses: actions/setup-python@v5
48-
name: Install Python ${{ matrix.python-version }}
47+
- name: Install libev
48+
if: matrix.event_loop_manager == 'libev'
49+
run: sudo apt-get install libev4 libev-dev
50+
51+
- name: Install uv
52+
uses: astral-sh/setup-uv@v5
4953
with:
5054
python-version: ${{ matrix.python-version }}
51-
allow-prereleases: true
55+
56+
# This is to get honest accounting of test time vs download time vs build time.
57+
# Not strictly necessary for running tests.
58+
- name: Build driver
59+
run: uv sync
60+
61+
# This is to get honest accounting of test time vs download time vs build time.
62+
# Not strictly necessary for running tests.
63+
- name: Download Scylla
64+
run: |
65+
export SCYLLA_VERSION='release:6.2'
66+
uv run ccm create scylla-driver-temp -n 1 --scylla --version ${SCYLLA_VERSION}
67+
uv run ccm remove
5268
5369
- name: Test with pytest
5470
run: |
5571
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}
5672
export SCYLLA_VERSION='release:6.2'
57-
./scripts/run_integration_test.sh tests/integration/standard/ tests/integration/cqlengine/
73+
export PROTOCOL_VERSION=4
74+
uv run pytest tests/integration/standard/ tests/integration/cqlengine/

0 commit comments

Comments
 (0)