34
34
# new versions of hosted runners on Github Actions
35
35
# ubuntu-20.04 is the last version that supported python3.6
36
36
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37
- os : [ubuntu-20 .04]
37
+ os : [ubuntu-22 .04]
38
38
services :
39
39
postgres :
40
40
image : postgres
@@ -50,17 +50,20 @@ jobs:
50
50
ports :
51
51
- 5432:5432
52
52
env :
53
- SENTRY_PYTHON_TEST_POSTGRES_HOST : localhost
53
+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || ' localhost' }}
54
54
SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
55
55
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD : sentry
56
+ # Use Docker container only for Python 3.6
57
+ container : ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
56
58
steps :
57
59
58
60
- uses : actions/setup-python@v5
61
+ if : ${{ matrix.python-version != '3.6' }}
59
62
with :
60
63
python-version : ${{ matrix.python-version }}
61
64
allow-prereleases : true
62
65
- name : " Setup ClickHouse Server"
63
- uses : getsentry/action-clickhouse-in-ci@v1.5
66
+ uses : getsentry/action-clickhouse-in-ci@v1.6
64
67
- name : Setup Test Env
65
68
run : |
66
69
pip install "coverage[toml]" tox
@@ -130,7 +133,7 @@ jobs:
130
133
# new versions of hosted runners on Github Actions
131
134
# ubuntu-20.04 is the last version that supported python3.6
132
135
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
133
- os : [ubuntu-20 .04]
136
+ os : [ubuntu-22 .04]
134
137
services :
135
138
postgres :
136
139
image : postgres
@@ -146,17 +149,20 @@ jobs:
146
149
ports :
147
150
- 5432:5432
148
151
env :
149
- SENTRY_PYTHON_TEST_POSTGRES_HOST : localhost
152
+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || ' localhost' }}
150
153
SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
151
154
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD : sentry
155
+ # Use Docker container only for Python 3.6
156
+ container : ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
152
157
steps :
153
158
154
159
- uses : actions/setup-python@v5
160
+ if : ${{ matrix.python-version != '3.6' }}
155
161
with :
156
162
python-version : ${{ matrix.python-version }}
157
163
allow-prereleases : true
158
164
- name : " Setup ClickHouse Server"
159
- uses : getsentry/action-clickhouse-in-ci@v1.5
165
+ uses : getsentry/action-clickhouse-in-ci@v1.6
160
166
- name : Setup Test Env
161
167
run : |
162
168
pip install "coverage[toml]" tox
@@ -219,7 +225,7 @@ jobs:
219
225
needs : test-dbs-pinned
220
226
# Always run this, even if a dependent job failed
221
227
if : always()
222
- runs-on : ubuntu-20 .04
228
+ runs-on : ubuntu-22 .04
223
229
steps :
224
230
- name : Check for failures
225
231
if : contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')
0 commit comments