21
21
runs-on : ${{ matrix.os }}
22
22
strategy :
23
23
matrix :
24
- python-version : ['3.9', '3.10', '3.11']
25
- os : [ubuntu-latest, windows-latest]
26
- exclude :
27
- - os : windows-latest
28
- python-version : ' 3.9'
24
+ python-version : ['3.11', '3.12', '3.13']
25
+ os : [ubuntu-latest]
29
26
30
27
steps :
31
28
- uses : actions/checkout@v2
@@ -39,39 +36,23 @@ jobs:
39
36
pip3 install -r requirements.txt
40
37
pip3 install -r requirements-dev.txt
41
38
pip3 install --editable .
42
- - name : Install dependencies (windows)
43
- if : matrix.os == 'windows-latest'
44
- run : |
45
- pip3 install -r requirements.txt --use-deprecated=legacy-resolver
46
- pip3 install -r requirements-dev.txt --use-deprecated=legacy-resolver
47
- pip3 install --editable . --use-deprecated=legacy-resolver
48
- - name : Execute Python 3.9 unit tests
49
- if : matrix.python-version == '3.9'
39
+ - name : Execute Python 3.11 unit tests
40
+ if : matrix.python-version == '3.11'
50
41
run : |
51
42
pip3 install -U python-dotenv
52
43
py.test test/unit
53
- - name : Execute Python 3.10 unit tests (windows)
54
- if : matrix.python-version == '3.10' && matrix.os == 'windows-latest'
55
- run : |
56
- pip3 install -U python-dotenv
57
- py.test test/unit --reruns 3
58
- - name : Execute Python 3.10 unit tests (ubuntu)
59
- if : matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
44
+ - name : Execute Python 3.12 unit tests (ubuntu)
45
+ if : matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
60
46
run : |
61
47
pip3 install -U python-dotenv
62
48
py.test test/unit --reruns 3 --cov=ibm_watson
63
- - name : Execute Python 3.11 unit tests (windows)
64
- if : matrix.python-version == '3.11' && matrix.os == 'windows-latest'
65
- run : |
66
- pip3 install -U python-dotenv
67
- py.test test/unit --reruns 3
68
- - name : Execute Python 3.11 unit tests (ubuntu)
69
- if : matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
49
+ - name : Execute Python 3.13 unit tests (ubuntu)
50
+ if : matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'
70
51
run : |
71
52
pip3 install -U python-dotenv
72
53
py.test test/unit --reruns 3
73
54
- name : Upload coverage to Codecov
74
- if : matrix.python-version == '3.10 ' && matrix.os == 'ubuntu-latest'
55
+ if : matrix.python-version == '3.12 ' && matrix.os == 'ubuntu-latest'
75
56
uses : codecov/codecov-action@v1
76
57
with :
77
58
name : py${{ matrix.python-version }}-${{ matrix.os }}
0 commit comments