diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 46aec35dd4..caed529ee5 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -25,8 +25,10 @@ env: jobs: test: name: common, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 3db0a7b142..daa3076b18 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -25,8 +25,8 @@ env: jobs: test: name: aiohttp, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-arq.yml b/.github/workflows/test-integration-arq.yml index 5b5ecc3a41..0473f89e26 100644 --- a/.github/workflows/test-integration-arq.yml +++ b/.github/workflows/test-integration-arq.yml @@ -25,8 +25,8 @@ env: jobs: test: name: arq, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 4e0e676151..242af7cb09 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -25,8 +25,8 @@ env: jobs: test: name: asgi, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index c9bc60409e..701b79c4de 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -25,8 +25,8 @@ env: jobs: test: name: aws_lambda, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index a87524fb06..334d0488be 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -25,8 +25,8 @@ env: jobs: test: name: beam, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 0c6cd55e9e..e729a55d5b 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -25,8 +25,10 @@ env: jobs: test: name: boto3, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index b8c7561a2d..e68d0cb465 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -25,8 +25,10 @@ env: jobs: test: name: bottle, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 21a4747d83..9206f73ac4 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -25,8 +25,10 @@ env: jobs: test: name: celery, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 024193b64c..bce173a475 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -25,8 +25,8 @@ env: jobs: test: name: chalice, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-cloud_resource_context.yml b/.github/workflows/test-integration-cloud_resource_context.yml index 95a3855b63..cedffb73ab 100644 --- a/.github/workflows/test-integration-cloud_resource_context.yml +++ b/.github/workflows/test-integration-cloud_resource_context.yml @@ -25,8 +25,8 @@ env: jobs: test: name: cloud_resource_context, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index dbd032d6dc..0acb4740ce 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -25,8 +25,10 @@ env: jobs: test: name: django, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -93,6 +95,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index edabecbe11..1577cf87c2 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -25,8 +25,10 @@ env: jobs: test: name: falcon, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index a7325c21de..55867323ae 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -25,8 +25,8 @@ env: jobs: test: name: fastapi, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 373e86c10d..0c329926b6 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -25,8 +25,10 @@ env: jobs: test: name: flask, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index defd0e9b7d..1439cc6619 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -25,8 +25,8 @@ env: jobs: test: name: gcp, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-gevent.yml b/.github/workflows/test-integration-gevent.yml index 40acbce266..2b768f43f8 100644 --- a/.github/workflows/test-integration-gevent.yml +++ b/.github/workflows/test-integration-gevent.yml @@ -25,8 +25,10 @@ env: jobs: test: name: gevent, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-grpc.yml b/.github/workflows/test-integration-grpc.yml index 4680eca69b..80113ed621 100644 --- a/.github/workflows/test-integration-grpc.yml +++ b/.github/workflows/test-integration-grpc.yml @@ -25,8 +25,8 @@ env: jobs: test: name: grpc, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 0e487aac0e..d842b0ef64 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -25,8 +25,8 @@ env: jobs: test: name: httpx, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-huey.yml b/.github/workflows/test-integration-huey.yml index 22fda63543..4113d145a7 100644 --- a/.github/workflows/test-integration-huey.yml +++ b/.github/workflows/test-integration-huey.yml @@ -25,8 +25,10 @@ env: jobs: test: name: huey, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-loguru.yml b/.github/workflows/test-integration-loguru.yml index 98843f9867..61814337f8 100644 --- a/.github/workflows/test-integration-loguru.yml +++ b/.github/workflows/test-integration-loguru.yml @@ -25,8 +25,8 @@ env: jobs: test: name: loguru, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-opentelemetry.yml b/.github/workflows/test-integration-opentelemetry.yml index 903ea9a249..e908fdc045 100644 --- a/.github/workflows/test-integration-opentelemetry.yml +++ b/.github/workflows/test-integration-opentelemetry.yml @@ -25,8 +25,8 @@ env: jobs: test: name: opentelemetry, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 7c75fc6e62..4aa47b695d 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -25,8 +25,8 @@ env: jobs: test: name: pure_eval, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-pymongo.yml b/.github/workflows/test-integration-pymongo.yml index d5b2743a67..f450786301 100644 --- a/.github/workflows/test-integration-pymongo.yml +++ b/.github/workflows/test-integration-pymongo.yml @@ -25,8 +25,10 @@ env: jobs: test: name: pymongo, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index bb57639c9c..17814b8b21 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -25,8 +25,10 @@ env: jobs: test: name: pyramid, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 798749e76e..4a3c839481 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -25,8 +25,8 @@ env: jobs: test: name: quart, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 79998aaf6b..aa150bef37 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -25,8 +25,10 @@ env: jobs: test: name: redis, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 94fe58b12a..c7bf082794 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -25,8 +25,10 @@ env: jobs: test: name: rediscluster, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 321813d08e..041551920a 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -25,8 +25,10 @@ env: jobs: test: name: requests, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index f12a9ed067..3899af5cab 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -25,8 +25,10 @@ env: jobs: test: name: rq, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index fc0984e2e5..684dd1448c 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -25,8 +25,8 @@ env: jobs: test: name: sanic, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index 7208e67abd..2fdc129cb5 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -25,8 +25,10 @@ env: jobs: test: name: sqlalchemy, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} + container: + image: python:2.7.18-buster strategy: fail-fast: false @@ -75,6 +77,8 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 1d0b3879bc..4751063584 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -25,8 +25,8 @@ env: jobs: test: name: starlette, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-starlite.yml b/.github/workflows/test-integration-starlite.yml index 6c74cbe4f0..f85ff55d08 100644 --- a/.github/workflows/test-integration-starlite.yml +++ b/.github/workflows/test-integration-starlite.yml @@ -25,8 +25,8 @@ env: jobs: test: name: starlite, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index 69bee7ff17..57b25c3be7 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -25,8 +25,8 @@ env: jobs: test: name: tornado, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 44fd273144..6fd4adba4f 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -25,8 +25,8 @@ env: jobs: test: name: trytond, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/scripts/split-tox-gh-actions/ci-yaml.txt b/scripts/split-tox-gh-actions/ci-yaml.txt index a30afff42f..9062003980 100644 --- a/scripts/split-tox-gh-actions/ci-yaml.txt +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -25,8 +25,9 @@ env: jobs: test: name: {{ framework }}, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} timeout-minutes: 30 + runs-on: ${{ matrix.os }} +{{ docker_image }} {{ strategy_matrix }} {{ services }} @@ -67,6 +68,7 @@ jobs: # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 +{{ docker_image }} steps: - name: Check for failures if: contains(needs.test.result, 'failure') diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 3cefbda695..4eedb47c54 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -42,6 +42,11 @@ os: [ubuntu-20.04] """ +DOCKER_IMAGE_FOR_27 = """\ + container: + image: python:2.7.18-buster +""" + def write_yaml_file( template, @@ -52,9 +57,10 @@ def write_yaml_file( # render template for print out = "" for template_line in template: - if template_line == "{{ strategy_matrix }}\n": - py_versions = [f'"{py.replace("py", "")}"' for py in python_versions] + py_versions = [py.replace("py", "") for py in python_versions] + if template_line == "{{ strategy_matrix }}\n": + py_versions = [f'"{py}"' for py in py_versions] m = MATRIX_DEFINITION m = m.replace("{{ framework }}", current_framework).replace( "{{ python-version }}", ",".join(py_versions) @@ -67,6 +73,11 @@ def write_yaml_file( out += "".join(f.readlines()) f.close() + elif template_line == "{{ docker_image }}\n": + print(py_versions) + if "2.7" in py_versions: + out += DOCKER_IMAGE_FOR_27 + else: out += template_line.replace("{{ framework }}", current_framework)