3030 fail-fast : false
3131 matrix :
3232 python-version : ["3.7","3.8","3.11","3.12","3.13"]
33- # python3.6 reached EOL and is no longer being supported on
34- # new versions of hosted runners on Github Actions
35- # ubuntu-20.04 is the last version that supported python3.6
36- # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
3733 os : [ubuntu-24.04]
3834 services :
3935 postgres :
@@ -50,15 +46,15 @@ jobs:
5046 ports :
5147 - 5432:5432
5248 env :
53- SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || 'localhost' }}
49+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'postgres' || 'localhost' }}
5450 SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
5551 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 }}
52+ # Use Docker container only for Python 3.6 and 3.7
53+ container : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'python:${{ matrix.python-version }} ' || null }}
5854 steps :
59556056 - uses : actions/setup-python@v5
61- if : ${{ matrix.python-version != '3.6' }}
57+ if : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') }}
6258 with :
6359 python-version : ${{ matrix.python-version }}
6460 allow-prereleases : true
@@ -129,10 +125,6 @@ jobs:
129125 fail-fast : false
130126 matrix :
131127 python-version : ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
132- # python3.6 reached EOL and is no longer being supported on
133- # new versions of hosted runners on Github Actions
134- # ubuntu-20.04 is the last version that supported python3.6
135- # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
136128 os : [ubuntu-24.04]
137129 services :
138130 postgres :
@@ -149,15 +141,15 @@ jobs:
149141 ports :
150142 - 5432:5432
151143 env :
152- SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ matrix.python-version == '3.6' && 'postgres' || 'localhost' }}
144+ SENTRY_PYTHON_TEST_POSTGRES_HOST : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'postgres' || 'localhost' }}
153145 SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
154146 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 }}
147+ # Use Docker container only for Python 3.6 and 3.7
148+ container : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'python:${{ matrix.python-version }} ' || null }}
157149 steps :
158150159151 - uses : actions/setup-python@v5
160- if : ${{ matrix.python-version != '3.6' }}
152+ if : ${{ ( matrix.python-version == '3.6' || matrix.python-version == '3.7') }}
161153 with :
162154 python-version : ${{ matrix.python-version }}
163155 allow-prereleases : true
0 commit comments