Skip to content

Commit

Permalink
Pin ubuntu to 22.04 (#3915)
Browse files Browse the repository at this point in the history
python 3.7 doesnt work on ubuntu 24.04
  • Loading branch information
sl0thentr0py authored Jan 10, 2025
1 parent 9db3362 commit 525d156
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-dbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test-integrations-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-web-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-web-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -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/[email protected]
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion scripts/split_tox_gh_actions/templates/test_group.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 525d156

Please sign in to comment.