@@ -20,14 +20,11 @@ jobs:
20
20
options : --health-cmd=pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
21
21
strategy :
22
22
matrix :
23
- python-version : ["3.8", "3. 9", "3.10", "3.11", "3.12", "3.13"]
23
+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
24
24
tortoise-orm :
25
- - tortoise021
26
- - tortoise022
27
- - tortoise023
28
25
- tortoise024
29
- # TODO: add dev back when drop python3.8 support
30
- # - tortoisedev
26
+ - tortoise025
27
+ - tortoisedev
31
28
steps :
32
29
- name : Start MySQL
33
30
run : sudo systemctl start mysql.service
@@ -44,41 +41,21 @@ jobs:
44
41
- name : Install and configure Poetry
45
42
run : |
46
43
pip install -U pip
47
- if [[ "${{ matrix.python-version }}" == "3.8" ]]; then
48
- # poetry2.0+ does not support installed by python3.8, but can manage project using py38
49
- python3.12 -m pip install "poetry>=2.0"
50
- else
51
- pip install "poetry>=2.0"
52
- fi
44
+ pip install "poetry>=2.0"
53
45
poetry env use python${{ matrix.python-version }}
54
46
- name : Install dependencies and check style
55
47
run : poetry run make check
56
- - name : Install TortoiseORM v0.21
57
- if : matrix.tortoise-orm == 'tortoise021'
58
- run : poetry run pip install --upgrade "tortoise-orm>=0.21,<0.22"
59
- - name : Install TortoiseORM v0.22
60
- if : matrix.tortoise-orm == 'tortoise022'
61
- run : poetry run pip install --upgrade "tortoise-orm>=0.22,<0.23"
62
- - name : Install TortoiseORM v0.23
63
- if : matrix.tortoise-orm == 'tortoise023'
64
- run : poetry run pip install --upgrade "tortoise-orm>=0.23,<0.24"
65
48
- name : Install TortoiseORM v0.24
66
49
if : matrix.tortoise-orm == 'tortoise024'
67
- run : |
68
- if [[ "${{ matrix.python-version }}" == "3.8" ]]; then
69
- echo "Skip test for tortoise v0.24 as it does not support Python3.8"
70
- else
71
- poetry run pip install --upgrade "tortoise-orm>=0.24,<0.25"
72
- fi
50
+ run : poetry run pip install --upgrade "tortoise-orm>=0.24,<0.25"
51
+ - name : Install TortoiseORM v0.25
52
+ if : matrix.tortoise-orm == 'tortoise025'
53
+ run : poetry run pip install --upgrade "tortoise-orm>=0.25,<0.26"
73
54
- name : Install TortoiseORM develop branch
74
55
if : matrix.tortoise-orm == 'tortoisedev'
75
56
run : |
76
- if [[ "${{ matrix.python-version }}" == "3.8" ]]; then
77
- echo "Skip test for tortoise develop branch as it does not support Python3.8"
78
- else
79
- poetry run pip uninstall -y tortoise-orm
80
- poetry run pip install --upgrade "git+https://github.com/tortoise/tortoise-orm"
81
- fi
57
+ poetry run pip uninstall -y tortoise-orm
58
+ poetry run pip install --upgrade "git+https://github.com/tortoise/tortoise-orm"
82
59
- name : CI
83
60
env :
84
61
MYSQL_PASS : root
90
67
run : poetry run make _testall
91
68
- name : Verify aiomysql support
92
69
# Only check the latest version of tortoise
93
- if : matrix.tortoise-orm == 'tortoise024 '
70
+ if : matrix.tortoise-orm == 'tortoisedev '
94
71
run : |
95
72
poetry run pip uninstall -y asyncmy
96
73
poetry run make test_mysql
101
78
MYSQL_PORT : 3306
102
79
- name : Verify psycopg support
103
80
# Only check the latest version of tortoise
104
- if : matrix.tortoise-orm == 'tortoise024 '
81
+ if : matrix.tortoise-orm == 'tortoisedev '
105
82
run : poetry run make test_psycopg
106
83
env :
107
84
POSTGRES_PASS : 123456
0 commit comments