3434 # new versions of hosted runners on Github Actions
3535 # ubuntu-20.04 is the last version that supported python3.6
3636 # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37- os : [ubuntu-20 .04]
37+ os : [ubuntu-22 .04]
3838 services :
3939 postgres :
4040 image : postgres
@@ -50,17 +50,20 @@ jobs:
5050 ports :
5151 - 5432:5432
5252 env :
53- SENTRY_PYTHON_TEST_POSTGRES_HOST : localhost
53+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || ' localhost' }}
5454 SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
5555 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 }}
5658 steps :
57595860 - uses : actions/setup-python@v5
61+ if : ${{ matrix.python-version != '3.6' }}
5962 with :
6063 python-version : ${{ matrix.python-version }}
6164 allow-prereleases : true
6265 - name : " Setup ClickHouse Server"
63- uses : getsentry/action-clickhouse-in-ci@v1.5
66+ uses : getsentry/action-clickhouse-in-ci@v1.6
6467 - name : Setup Test Env
6568 run : |
6669 pip install "coverage[toml]" tox
@@ -104,7 +107,7 @@ jobs:
104107 coverage xml
105108 - name : Upload coverage to Codecov
106109 if : ${{ !cancelled() }}
107- 110+ 108111 with :
109112 token : ${{ secrets.CODECOV_TOKEN }}
110113 files : coverage.xml
@@ -130,7 +133,7 @@ jobs:
130133 # new versions of hosted runners on Github Actions
131134 # ubuntu-20.04 is the last version that supported python3.6
132135 # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
133- os : [ubuntu-20 .04]
136+ os : [ubuntu-22 .04]
134137 services :
135138 postgres :
136139 image : postgres
@@ -146,17 +149,20 @@ jobs:
146149 ports :
147150 - 5432:5432
148151 env :
149- SENTRY_PYTHON_TEST_POSTGRES_HOST : localhost
152+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || ' localhost' }}
150153 SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
151154 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 }}
152157 steps :
153158154159 - uses : actions/setup-python@v5
160+ if : ${{ matrix.python-version != '3.6' }}
155161 with :
156162 python-version : ${{ matrix.python-version }}
157163 allow-prereleases : true
158164 - name : " Setup ClickHouse Server"
159- uses : getsentry/action-clickhouse-in-ci@v1.5
165+ uses : getsentry/action-clickhouse-in-ci@v1.6
160166 - name : Setup Test Env
161167 run : |
162168 pip install "coverage[toml]" tox
@@ -200,7 +206,7 @@ jobs:
200206 coverage xml
201207 - name : Upload coverage to Codecov
202208 if : ${{ !cancelled() }}
203- 209+ 204210 with :
205211 token : ${{ secrets.CODECOV_TOKEN }}
206212 files : coverage.xml
@@ -219,7 +225,7 @@ jobs:
219225 needs : test-dbs-pinned
220226 # Always run this, even if a dependent job failed
221227 if : always()
222- runs-on : ubuntu-20 .04
228+ runs-on : ubuntu-22 .04
223229 steps :
224230 - name : Check for failures
225231 if : contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')
0 commit comments