@@ -20,19 +20,22 @@ jobs:
2020 os : [ubuntu, windows, macos]
2121
2222 steps :
23- - uses : actions/checkout@v3
23+ - uses : actions/checkout@v4
2424
2525 - name : Set up Python 3.7
26- uses : actions/setup-python@v4
26+ uses : actions/setup-python@v5
2727 with :
2828 python-version : 3.7
29+ if : matrix.os != 'macos'
2930 - name : Install dependencies
3031 run : python .github/workflows/install_deps.py
32+ if : matrix.os != 'macos'
3133 - name : Run tests and flake8
3234 run : python .github/workflows/run_tests.py
35+ if : matrix.os != 'macos'
3336
3437 - name : Set up Python 3.8
35- uses : actions/setup-python@v4
38+ uses : actions/setup-python@v5
3639 with :
3740 python-version : 3.8
3841 - name : Install dependencies
4144 run : python .github/workflows/run_tests.py
4245
4346 - name : Set up Python 3.9
44- uses : actions/setup-python@v4
47+ uses : actions/setup-python@v5
4548 with :
4649 python-version : 3.9
4750 - name : Install dependencies
5053 run : python .github/workflows/run_tests.py
5154
5255 - name : Set up Python 3.10
53- uses : actions/setup-python@v4
56+ uses : actions/setup-python@v5
5457 with :
5558 python-version : ' 3.10'
5659 - name : Install dependencies
@@ -59,14 +62,23 @@ jobs:
5962 run : python .github/workflows/run_tests.py
6063
6164 - name : Set up Python 3.11
62- uses : actions/setup-python@v4
65+ uses : actions/setup-python@v5
6366 with :
6467 python-version : 3.11
6568 - name : Install dependencies
6669 run : python .github/workflows/install_deps.py
6770 - name : Run tests and flake8
6871 run : python .github/workflows/run_tests.py
6972
73+ - name : Set up Python 3.12
74+ uses : actions/setup-python@v5
75+ with :
76+ python-version : 3.12
77+ - name : Install dependencies
78+ run : python .github/workflows/install_deps.py
79+ - name : Run tests and flake8
80+ run : python .github/workflows/run_tests.py
81+
7082 - name : Combine coverage
7183 run : python .github/workflows/run_tests.py combine
7284
@@ -85,12 +97,12 @@ jobs:
8597 env :
8698 DCS : ${{ matrix.dcs }}
8799 ETCDVERSION : 3.4.23
88- PGVERSION : 15 .1-1 # for windows and macos
100+ PGVERSION : 16 .1-1 # for windows and macos
89101 strategy :
90102 fail-fast : false
91103 matrix :
92104 os : [ubuntu]
93- python-version : [3.7, '3.10' ]
105+ python-version : [3.7, 3.12 ]
94106 dcs : [etcd, etcd3, consul, exhibitor, kubernetes, raft]
95107 include :
96108 - os : macos
@@ -104,9 +116,9 @@ jobs:
104116 dcs : etcd3
105117
106118 steps :
107- - uses : actions/checkout@v3
119+ - uses : actions/checkout@v4
108120 - name : Set up Python
109- uses : actions/setup-python@v4
121+ uses : actions/setup-python@v5
110122 with :
111123 python-version : ${{ matrix.python-version }}
112124 - uses : nolar/setup-k3d-k3s@v1
@@ -125,7 +137,7 @@ jobs:
125137 - name : Run behave tests
126138 run : python .github/workflows/run_tests.py
127139 - name : Upload logs if behave failed
128- uses : actions/upload-artifact@v3
140+ uses : actions/upload-artifact@v4
129141 if : failure()
130142 with :
131143 name : behave-${{ matrix.os }}-${{ matrix.dcs }}-${{ matrix.python-version }}-logs
@@ -145,7 +157,7 @@ jobs:
145157 needs : unit
146158 runs-on : ubuntu-latest
147159 steps :
148- - uses : actions/setup-python@v4
160+ - uses : actions/setup-python@v5
149161 - run : python -m pip install coveralls
150162 - run : python -m coveralls --service=github --finish
151163 env :
@@ -162,27 +174,27 @@ jobs:
162174 pyright :
163175 runs-on : ubuntu-latest
164176 steps :
165- - uses : actions/checkout@v3
177+ - uses : actions/checkout@v4
166178
167- - name : Set up Python 3.11
168- uses : actions/setup-python@v4
179+ - name : Set up Python 3.12
180+ uses : actions/setup-python@v5
169181 with :
170- python-version : 3.11
182+ python-version : 3.12
171183
172184 - name : Install dependencies
173185 run : python -m pip install -r requirements.txt psycopg2-binary psycopg
174186
175- - uses : jakebailey/pyright-action@v1
187+ - uses : jakebailey/pyright-action@v2
176188 with :
177- version : 1.1.347
189+ version : 1.1.379
178190
179191 docs :
180192 runs-on : ubuntu-latest
181193 steps :
182- - uses : actions/checkout@v3
194+ - uses : actions/checkout@v4
183195
184196 - name : Set up Python 3.11
185- uses : actions/setup-python@v4
197+ uses : actions/setup-python@v5
186198 with :
187199 python-version : 3.11
188200 cache : pip
@@ -199,3 +211,20 @@ jobs:
199211
200212 - name : Generate documentation
201213 run : tox -m docs
214+
215+ isort :
216+ runs-on : ubuntu-latest
217+ steps :
218+ - uses : actions/checkout@v4
219+
220+ - name : Set up Python 3.12
221+ uses : actions/setup-python@v5
222+ with :
223+ python-version : 3.12
224+ cache : pip
225+
226+ - name : isort
227+ uses : isort/isort-action@master
228+ with :
229+ requirementsFiles : " requirements.txt requirements.dev.txt requirements.docs.txt"
230+ sort-paths : " patroni tests features setup.py"
0 commit comments