2121 runs-on : ${{ matrix.os }}
2222 strategy :
2323 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]
2926
3027 steps :
3128 - uses : actions/checkout@v2
@@ -39,39 +36,23 @@ jobs:
3936 pip3 install -r requirements.txt
4037 pip3 install -r requirements-dev.txt
4138 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'
5041 run : |
5142 pip3 install -U python-dotenv
5243 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'
6046 run : |
6147 pip3 install -U python-dotenv
6248 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'
7051 run : |
7152 pip3 install -U python-dotenv
7253 py.test test/unit --reruns 3
7354 - 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'
7556 uses : codecov/codecov-action@v1
7657 with :
7758 name : py${{ matrix.python-version }}-${{ matrix.os }}
0 commit comments