Skip to content

Commit

Permalink
CI: Add Ansible 10; bump Python from 3.11 to 3.12 (#560)
Browse files Browse the repository at this point in the history
* Add Ansible 10 to CI; bump Python from 3.11 to 3.12.

* Fix workflow.

* Remove superfluous variable.

* Use set instead of tuple.

Co-authored-by: Maxwell G <[email protected]>

---------

Co-authored-by: Maxwell G <[email protected]>
  • Loading branch information
felixfontein and gotmax23 authored Nov 24, 2023
1 parent 15f22e1 commit fbd6ba2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/antsibull-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,21 @@ jobs:
strategy:
matrix:
include:
- name: Ansible 8 with default settings
options: '-e antsibull_ansible_version=8.99.0 -e antsibull_ansible_git_version=stable-2.15'
- name: Ansible 8
options: '-e antsibull_ansible_version=8.99.0'
python: '3.9'
antsibull_changelog_ref: 0.14.0
antsibull_core_ref: main
- name: Ansible 9 with ansible-core devel
options: '-e antsibull_ansible_version=9.99.0 -e antsibull_ansible_git_version=devel'
- name: Ansible 9
options: '-e antsibull_ansible_version=9.99.0'
python: '3.11'
antsibull_changelog_ref: main
antsibull_core_ref: main
- name: Ansible 10
options: '-e antsibull_ansible_version=10.99.0'
python: '3.12'
antsibull_changelog_ref: main
antsibull_core_ref: main

steps:
- name: Check out antsibull
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-dumb-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Switch to Python 3.11
- name: Switch to Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Figure out the source repos
id: build-settings
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
include:
- session: test
python-versions: "3.9, 3.10, 3.11"
python-versions: "3.9, 3.10, 3.11, 3.12"
codecov: true
packages: ""

Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def other_antsibull(
return to_install


@nox.session(python=["3.9", "3.10", "3.11"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
def test(session: nox.Session):
install(
session,
Expand All @@ -80,7 +80,7 @@ def test(session: nox.Session):
)
covfile = Path(session.create_tmp(), ".coverage")
more_args = []
if session.python == "3.11":
if session.python in {"3.11", "3.12"}:
more_args.append("--error-for-skips")
session.run(
"pytest",
Expand Down

0 comments on commit fbd6ba2

Please sign in to comment.