Skip to content

Commit

Permalink
CI: add integration tests with python 3.13
Browse files Browse the repository at this point in the history
since we want to start test the alpha/beta version of python
refactoring a bit the integration test workflow

the action for pyenv we are using isn't really getting updates
too much, and trying to switch back to the offical use python action
that can now have prerelease python versions
  • Loading branch information
fruch authored and dkropachev committed Dec 19, 2024
1 parent 5370b6c commit e1ab973
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,40 @@ 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-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.8.17", "3.11.4", "3.12.0b4"]
java-version: [8]
python-version: ["3.8", "3.11", "3.12", "3.13"]
event_loop_manager: ["libev", "asyncio", "asyncore"]
exclude:
- python-version: "3.12.0b4"
- python-version: "3.12"
event_loop_manager: "asyncore"
- python-version: "3.13"
event_loop_manager: "asyncore"

steps:
- uses: actions/checkout@v3
- name: setup pyenv ${{ matrix.python-version }}
uses: "gabrielfalcao/pyenv-action@v16"
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
default: 2.7.14
versions: ${{ matrix.python-version }}
java-version: ${{ matrix.java-version }}
distribution: 'adopt'

- name: Test with pytest
run: |
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}
export SCYLLA_VERSION='release:5.1'
export SCYLLA_VERSION='release:5.4'
./scripts/run_integration_test.sh tests/integration/standard/ tests/integration/cqlengine/
- name: Test tablets
run: |
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}
Expand Down

0 comments on commit e1ab973

Please sign in to comment.