1818 fail-fast : false
1919 matrix :
2020 os : [ubuntu-latest, windows-latest, macos-latest]
21- python-version : [3.7, 3.8, 3.9, '3.10', 3.11, 3.12 ]
21+ python-version : [3.7, 3.8, 3.9, '3.10', 3.11]
2222 exclude :
23+ - os : macos-latest
24+ python-version : 3.7
2325 - os : ubuntu-latest
2426 python-version : 3.7
2527 include :
@@ -37,10 +39,37 @@ jobs:
3739 run : python .github/workflows/install_deps.py
3840 - name : Run tests and flake8
3941 run : python .github/workflows/run_tests.py
42+ - name : Upload logs from unit tests
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : logs-${{ matrix.os }}-${{ matrix.python-version }}
46+ path : ${{ github.workspace }}/.coverage.*
47+ include-hidden-files : true
48+ retention-days : 1
4049
41- post-unit :
50+ post-unit-coverage :
51+ runs-on : ${{ matrix.os }}
4252 needs : unit
53+ strategy :
54+ fail-fast : false
55+ matrix :
56+ os : [ubuntu-latest, windows-latest, macos-latest]
4357 steps :
58+ - uses : actions/checkout@v4
59+
60+ - name : Set up Python
61+ uses : actions/setup-python@v5
62+ with :
63+ python-version : 3.11
64+
65+ - name : Install dependencies
66+ run : python .github/workflows/install_deps.py
67+
68+ - name : Download logs from unit tests
69+ uses : actions/download-artifact@v4
70+ with :
71+ pattern : logs-${{ matrix.os }}-*
72+ merge-multiple : true
4473 - name : Combine coverage
4574 run : python .github/workflows/run_tests.py combine
4675
@@ -63,24 +92,20 @@ jobs:
6392 strategy :
6493 fail-fast : false
6594 matrix :
66- os : [ubuntu-latest]
67- python-version : [3.7, 3.12]
95+ os : [ubuntu-22.04]
96+ python-version : [3.13]
97+ # python-version: [3.7, 3.13]
6898 dcs : [etcd, etcd3, consul, exhibitor, kubernetes, raft]
69- exclude :
70- - os : ubuntu-latest
71- python-version : 3.7
72- include :
73- - os : ubuntu-22.04
74- python-version : 3.7
75- - os : macos-latest
76- python-version : 3.8
77- dcs : raft
78- - os : macos-latest
79- python-version : 3.9
80- dcs : etcd
81- - os : macos-latest
82- python-version : 3.11
83- dcs : etcd3
99+ # include:
100+ # - os: macos-latest
101+ # python-version: 3.8
102+ # dcs: raft
103+ # - os: macos-latest
104+ # python-version: 3.9
105+ # dcs: etcd
106+ # - os: macos-latest
107+ # python-version: 3.11
108+ # dcs: etcd3
84109
85110 steps :
86111 - uses : actions/checkout@v4
@@ -98,13 +123,13 @@ jobs:
98123 sudo sh -c 'wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg'
99124 sudo sh -c 'echo "deb [signed-by=/etc/apt/trusted.gpg.d/citusdata_community.gpg] https://packagecloud.io/citusdata/community/ubuntu/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/citusdata_community.list'
100125 sudo sh -c 'wget -qO - https://packagecloud.io/citusdata/community/gpgkey | gpg --dearmor > /etc/apt/trusted.gpg.d/citusdata_community.gpg'
101- if : matrix.os == 'ubuntu'
126+ if : startsWith( matrix.os, 'ubuntu')
102127 - name : Install dependencies
103128 run : python .github/workflows/install_deps.py
104129 - name : Run behave tests
105130 run : python .github/workflows/run_tests.py
106131 - name : Upload logs if behave failed
107- uses : actions/upload-artifact@v3
132+ uses : actions/upload-artifact@v4
108133 if : failure()
109134 with :
110135 name : behave-${{ matrix.os }}-${{ matrix.dcs }}-${{ matrix.python-version }}-logs
@@ -121,7 +146,7 @@ jobs:
121146
122147 coveralls-finish :
123148 name : Finalize coveralls.io
124- needs : unit
149+ needs : post- unit-coverage
125150 runs-on : ubuntu-latest
126151 steps :
127152 - uses : actions/setup-python@v4
@@ -144,14 +169,14 @@ jobs:
144169 - uses : actions/checkout@v3
145170
146171 - name : Set up Python 3.11
147- uses : actions/setup-python@v4
172+ uses : actions/setup-python@v5
148173 with :
149174 python-version : 3.11
150175
151176 - name : Install dependencies
152177 run : python -m pip install -r requirements.txt psycopg2-binary psycopg
153178
154- - uses : jakebailey/pyright-action@v1
179+ - uses : jakebailey/pyright-action@v2
155180 with :
156181 version : 1.1.347
157182
0 commit comments