From abc3eb7a1421feac522a695689487f78da6040fa Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 21 Jun 2023 08:28:34 +0200 Subject: [PATCH] update default Python versions for CI - run tests by default with 3.10, as core is dropping 3.9 support soon - add 3.9 as an additional test with core 2.11 - run all other steps with 3.11, as that's the latest supported one --- .github/workflows/docs.yml | 2 +- .github/workflows/main.yml | 15 +++++++-------- .github/workflows/release.yml | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8fbaf2e41..278b4bd1a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" - name: Install dependencies run: make doc-setup - name: Generate changelog diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f8f4853bd..c1345c275 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,8 @@ jobs: fail-fast: false matrix: python: - - "3.9" + - "3.10" ansible: - - stable-2.11 - stable-2.12 - stable-2.13 - stable-2.14 @@ -41,8 +40,8 @@ jobs: ansible: "stable-2.11" - python: "3.7" ansible: "stable-2.11" - - python: "3.10" - ansible: "devel" + - python: "3.9" + ansible: "stable-2.11" - python: "3.11" ansible: "devel" steps: @@ -86,7 +85,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: 'pip' cache-dependency-path: '**/requirements*.txt' - name: Install Ansible @@ -105,7 +104,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: 'pip' cache-dependency-path: '**/requirements*.txt' - name: Install dependencies @@ -127,7 +126,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: 'pip' cache-dependency-path: '**/requirements*.txt' - name: Install dependencies @@ -149,7 +148,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" cache: 'pip' cache-dependency-path: '**/requirements*.txt' - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0f172cb2..b1bc9961e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" - name: Install Ansible run: pip install --upgrade ansible py - name: Build Ansible Collection