Skip to content

Commit a24f104

Browse files
committed
CI: switch to pyenv for better python2 support
since we need to run older versions of scylla with cqlsh that only support python2, we need a way to still have python2 available
1 parent 3a855fc commit a24f104

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

.github/workflows/integration-tests.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,23 @@ jobs:
1212
tests:
1313
name: test ${{ matrix.event_loop_manager }} (${{ matrix.python-version }})
1414
if: "!contains(github.event.pull_request.labels.*.name, 'disable-integration-tests')"
15-
runs-on: ${{ matrix.os }}
15+
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
include:
20-
- os: ubuntu-latest
21-
python-version: "3.8"
22-
event_loop_manager: "libev"
23-
24-
- os: ubuntu-latest
25-
python-version: "3.8"
26-
event_loop_manager: "asyncio"
27-
28-
- os: ubuntu-latest
29-
python-version: "3.8"
30-
event_loop_manager: "asyncore"
31-
32-
- os: ubuntu-latest
33-
python-version: "3.11"
34-
event_loop_manager: "libev"
35-
36-
- os: ubuntu-latest
37-
python-version: "3.11"
38-
event_loop_manager: "asyncio"
39-
40-
- os: ubuntu-latest
41-
python-version: "3.11"
19+
python-version: ["3.8.16", "3.9.17", "3.10.12", "3.11.5", "3.12.0b4"]
20+
event_loop_manager: ["libev", "asyncio", "asyncore", "twisted", "gevent", "eventlet"]
21+
exclude:
22+
- python-version: "3.12.0b4"
4223
event_loop_manager: "asyncore"
4324

44-
- os: ubuntu-latest
45-
python-version: "3.12"
46-
event_loop_manager: "libev"
4725
steps:
4826
- uses: actions/checkout@v3
49-
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v4
27+
- name: setup pyenv ${{ matrix.python-version }}
28+
uses: "gabrielfalcao/pyenv-action@v16"
5129
with:
52-
python-version: ${{ matrix.python-version }}
30+
default: 2.7.14
31+
versions: ${{ matrix.python-version }}
5332
- name: Test with pytest
5433
run: |
5534
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}

0 commit comments

Comments
 (0)