8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-latest
12
11
strategy :
13
12
matrix :
14
- python-version : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
13
+ version :
14
+ - python : " 3.7"
15
+ ubuntu : " ubuntu-22.04" ,
16
+ - python : " 3.8"
17
+ ubuntu : " ubuntu-22.04" ,
18
+ - python : " 3.9" ,
19
+ ubuntu : " ubuntu-latest"
20
+ - python : " 3.10" ,
21
+ ubuntu : " ubuntu-latest"
22
+ - python : " 3.11" ,
23
+ ubuntu : " ubuntu-latest"
24
+ - python : " 3.12"
25
+ ubuntu : " ubuntu-latest"
26
+ runs-on : ${{ matrix.version.ubuntu }}
15
27
steps :
16
28
- uses : actions/checkout@v2
17
29
- name : Set up Kerberos
18
30
run : sudo apt-get install -y libkrb5-dev krb5-kdc krb5-admin-server
19
- - name : Set up Python ${{ matrix.python- version }}
31
+ - name : Set up Python ${{ matrix.version.python }}
20
32
uses : actions/setup-python@v5
21
33
with :
22
- python-version : ${{ matrix.python- version }}
34
+ python-version : ${{ matrix.version.python }}
23
35
cache : pip
24
36
cache-dependency-path : setup.py
25
37
- name : Install dependencies
@@ -30,15 +42,15 @@ jobs:
30
42
run : |
31
43
make test
32
44
- name : Lint
33
- if : matrix.python- version != '3.7'
45
+ if : matrix.version.python != '3.7'
34
46
run : |
35
47
make lint
36
48
- name : Format
37
- if : matrix.python- version != '3.7'
49
+ if : matrix.version.python != '3.7'
38
50
run : |
39
51
make format-check
40
52
- name : Type annotations
41
- if : matrix.python- version != '3.7'
53
+ if : matrix.version.python != '3.7'
42
54
run : |
43
55
make types
44
56
mysql-connector-j :
0 commit comments