How to solve python 3.12 dependency for ansible devel version in github actions?

Since the latest devel version only supports python>=3.12, and ubuntu-latest only provides python 3.11, my tests are failing now.

How do I solve that issue?

I tried to quick-and-dirty disable testing on devel by commenting the following line:

However, this disabled ALL tests, not only the devel ones.

I did create a PR to fix this in April (Add Python versions for ansible-core 2.16 to 2.19 by felixfontein · Pull Request #96 · ansible-community/ansible-test-gh-action · GitHub), but nothing happened. (CI for the GitHub action seems to be broken as well.)

You could use my fork of the action (GitHub - felixfontein/ansible-test-gh-action: A composite GitHub Action encapsulating the GitHub Actions CI/CD workflows setup necessary for testing Ansible collection repositories on GitHub) where I already fixed this a longer time ago. Please note that I will likely no longer update my fork since I switched all my collections to antsibull-nox and its shared workflow (Running nox in CI - antsibull-nox – Antsibull Nox Helper), but at least for now the fork should fix your problems.

CC @webknjaz

3 Likes

The action has been fixed BTW.