From 525d1564c3aabc7ebd5f43b553083f8f2df423f7 Mon Sep 17 00:00:00 2001 From: Neel Shah Date: Fri, 10 Jan 2025 13:08:01 +0100 Subject: [PATCH] Pin ubuntu to 22.04 (#3915) python 3.7 doesnt work on ubuntu 24.04 --- .github/workflows/test-integrations-ai.yml | 4 ++-- .github/workflows/test-integrations-aws.yml | 2 +- .github/workflows/test-integrations-cloud.yml | 4 ++-- .github/workflows/test-integrations-common.yml | 2 +- .github/workflows/test-integrations-dbs.yml | 4 ++-- .github/workflows/test-integrations-graphql.yml | 4 ++-- .github/workflows/test-integrations-misc.yml | 12 ++++++++++-- .github/workflows/test-integrations-network.yml | 4 ++-- .github/workflows/test-integrations-tasks.yml | 4 ++-- .github/workflows/test-integrations-web-1.yml | 4 ++-- .github/workflows/test-integrations-web-2.yml | 4 ++-- .../split_tox_gh_actions/templates/test_group.jinja | 2 +- 12 files changed, 29 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test-integrations-ai.yml b/.github/workflows/test-integrations-ai.yml index 77cac55430..85c5475aff 100644 --- a/.github/workflows/test-integrations-ai.yml +++ b/.github/workflows/test-integrations-ai.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -92,7 +92,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-aws.yml b/.github/workflows/test-integrations-aws.yml index 698902fec0..33de7bac46 100644 --- a/.github/workflows/test-integrations-aws.yml +++ b/.github/workflows/test-integrations-aws.yml @@ -62,7 +62,7 @@ jobs: fail-fast: false matrix: python-version: ["3.9"] - os: [ubuntu-latest] + os: [ubuntu-22.04] needs: check-permissions steps: - uses: actions/checkout@v4.2.2 diff --git a/.github/workflows/test-integrations-cloud.yml b/.github/workflows/test-integrations-cloud.yml index a73adae869..8c450dc911 100644 --- a/.github/workflows/test-integrations-cloud.yml +++ b/.github/workflows/test-integrations-cloud.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -88,7 +88,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 237b94bc26..24c0e84026 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-dbs.yml b/.github/workflows/test-integrations-dbs.yml index 6bf6e193bf..12359c93b4 100644 --- a/.github/workflows/test-integrations-dbs.yml +++ b/.github/workflows/test-integrations-dbs.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] services: postgres: image: postgres @@ -115,7 +115,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] - os: [ubuntu-latest] + os: [ubuntu-22.04] services: postgres: image: postgres diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index baade93bf6..7b6571619a 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -88,7 +88,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.11","3.12"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-misc.yml b/.github/workflows/test-integrations-misc.yml index 581b4cb8d0..cfd5dae663 100644 --- a/.github/workflows/test-integrations-misc.yml +++ b/.github/workflows/test-integrations-misc.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -75,6 +75,10 @@ jobs: run: | set -x # print commands that are executed ./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest" + - name: Test unleash latest + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-unleash-latest" - name: Generate coverage XML if: ${{ !cancelled() }} run: | @@ -104,7 +108,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -149,6 +153,10 @@ jobs: run: | set -x # print commands that are executed ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-typer" + - name: Test unleash pinned + run: | + set -x # print commands that are executed + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-unleash" - name: Generate coverage XML if: ${{ !cancelled() }} run: | diff --git a/.github/workflows/test-integrations-network.yml b/.github/workflows/test-integrations-network.yml index c8c90ffca4..de02b30d8c 100644 --- a/.github/workflows/test-integrations-network.yml +++ b/.github/workflows/test-integrations-network.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -88,7 +88,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-tasks.yml b/.github/workflows/test-integrations-tasks.yml index a6796534ef..1b232c4d64 100644 --- a/.github/workflows/test-integrations-tasks.yml +++ b/.github/workflows/test-integrations-tasks.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.10","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -106,7 +106,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/.github/workflows/test-integrations-web-1.yml b/.github/workflows/test-integrations-web-1.yml index 076fbd68cf..1b3163c7ba 100644 --- a/.github/workflows/test-integrations-web-1.yml +++ b/.github/workflows/test-integrations-web-1.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8","3.10","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] services: postgres: image: postgres @@ -106,7 +106,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] - os: [ubuntu-latest] + os: [ubuntu-22.04] services: postgres: image: postgres diff --git a/.github/workflows/test-integrations-web-2.yml b/.github/workflows/test-integrations-web-2.yml index 5508421ed2..fdd6c5ede3 100644 --- a/.github/workflows/test-integrations-web-2.yml +++ b/.github/workflows/test-integrations-web-2.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 @@ -112,7 +112,7 @@ jobs: fail-fast: false matrix: python-version: ["3.7","3.8","3.9","3.11","3.12","3.13"] - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 diff --git a/scripts/split_tox_gh_actions/templates/test_group.jinja b/scripts/split_tox_gh_actions/templates/test_group.jinja index 9631df8846..0626fe03ca 100644 --- a/scripts/split_tox_gh_actions/templates/test_group.jinja +++ b/scripts/split_tox_gh_actions/templates/test_group.jinja @@ -6,7 +6,7 @@ fail-fast: false matrix: python-version: [{{ py_versions.get(category)|join(",") }}] - os: [ubuntu-latest] + os: [ubuntu-22.04] {% if needs_github_secrets %} needs: check-permissions