Skip to content

Commit

Permalink
update default Python versions for CI
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
evgeni committed Jul 10, 2023
1 parent 2a59b9f commit abc3eb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abc3eb7

Please sign in to comment.