Skip to content

Commit 900c71e

Browse files
committed
Update minimum Python version to 3.10
Update workflows and configuration to support Python 3.10. Python 3.9 will no longer receive updates after October 2025. This change ensures compatibility with newer features and maintains security for the project. Signed-off-by: Jose Javier Merchante <jjmerchante@bitergia.com>
1 parent f7dd936 commit 900c71e

5 files changed

Lines changed: 130 additions & 181 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,21 @@ jobs:
2222
runs-on: ubuntu-latest
2323
services:
2424
mysql:
25-
image: mariadb:10.5
25+
image: mariadb:11.8
2626
env:
2727
MYSQL_ROOT_PASSWORD: root
2828
ports:
2929
- 3306:3306
30-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
30+
options: >-
31+
--health-cmd="healthcheck.sh --connect --innodb_initialized"
32+
--health-interval=10s
33+
--health-timeout=5s
34+
--health-retries=3
3135
3236
name: Python ${{ matrix.python-version }} for ES ${{ matrix.elasticsearch-version }}
3337
strategy:
3438
matrix:
35-
python-version: ['3.9', '3.10', '3.11', '3.12']
39+
python-version: ['3.10', '3.11', '3.12', '3.13']
3640

3741
steps:
3842
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -50,8 +54,7 @@ jobs:
5054

5155
- name: Install dev dependencies
5256
run: |
53-
curl -sSL https://install.python-poetry.org | python3 -
54-
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV
57+
pipx install poetry
5558
poetry install --only dev
5659
5760
- name: Set MySQL mode

.github/workflows/tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ jobs:
1616

1717
services:
1818
mysql:
19-
image: mariadb:10.5
19+
image: mariadb:11.8
2020
env:
2121
MYSQL_ROOT_PASSWORD: root
2222
ports:
2323
- 3306:3306
24-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
24+
options: >-
25+
--health-cmd="healthcheck.sh --connect --innodb_initialized"
26+
--health-interval=10s
27+
--health-timeout=5s
28+
--health-retries=3
2529
2630
strategy:
2731
matrix:
28-
python-version: ['3.9', '3.10', '3.11', '3.12']
32+
python-version: ['3.10', '3.11', '3.12', '3.13']
2933

3034
runs-on: ubuntu-latest
3135
name: Python ${{ matrix.python-version }}
@@ -38,8 +42,7 @@ jobs:
3842
python-version: ${{ matrix.python-version }}
3943
- name: Install poetry
4044
run: |
41-
curl -sSL https://install.python-poetry.org | python3 -
42-
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV
45+
pipx install poetry
4346
- name: Install dependencies
4447
run: |
4548
poetry install -vvv

0 commit comments

Comments
 (0)