forked from apache/cassandra-python-driver
-
Notifications
You must be signed in to change notification settings - Fork 52
101 lines (91 loc) · 2.73 KB
/
integration-tests.yml
File metadata and controls
101 lines (91 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Integration tests
on:
push:
branches:
- master
- 'branch-**'
paths-ignore:
- docs/*
- examples/*
- scripts/*
- .gitignore
- '*.rst'
- '*.ini'
- LICENSE
- .github/dependabot.yml
- .github/pull_request_template.md
- "*.md"
- .github/workflows/docs-*
pull_request:
paths-ignore:
- docs/*
- examples/*
- scripts/*
- .gitignore
- '*.rst'
- '*.ini'
- LICENSE
- .github/dependabot.yml
- .github/pull_request_template.md
- "*.md"
- .github/workflows/docs-*
workflow_dispatch:
jobs:
tests:
name: test ${{ matrix.event_loop_manager }} (${{ matrix.python-version }})
if: "!contains(github.event.pull_request.labels.*.name, 'disable-integration-tests')"
runs-on: ubuntu-24.04
env:
SCYLLA_VERSION: release:2025.2
strategy:
fail-fast: false
matrix:
java-version: [8]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.14t"]
event_loop_manager: ["libev", "asyncio", "asyncore"]
exclude:
- python-version: "3.12"
event_loop_manager: "asyncore"
- python-version: "3.13"
event_loop_manager: "asyncore"
- python-version: "3.14"
event_loop_manager: "asyncore"
- python-version: "3.14t"
event_loop_manager: "asyncore"
steps:
- uses: actions/checkout@v6
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
- name: Install libev
run: sudo apt-get install libev4 libev-dev
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
# This is to get honest accounting of test time vs download time vs build time.
# Not strictly necessary for running tests.
- name: Build driver
run: uv sync
- name: Cache Scylla download
uses: actions/cache@v5
with:
path: ~/.ccm/repository
key: scylla-${{ env.SCYLLA_VERSION }}-${{ runner.os }}
# This is to get honest accounting of test time vs download time vs build time.
# Not strictly necessary for running tests.
- name: Download Scylla
run: |
uv run ccm create scylla-driver-temp -n 1 --scylla --version ${SCYLLA_VERSION}
uv run ccm remove
- name: Test with pytest
env:
EVENT_LOOP_MANAGER: ${{ matrix.event_loop_manager }}
PROTOCOL_VERSION: 4
run: |
if [[ "${{ matrix.python-version }}" =~ t$ ]]; then
export PYTHON_GIL=0
fi
uv run pytest tests/integration/standard/ tests/integration/cqlengine/