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

**URL:** <https://forum.ansible.com/t/how-to-solve-python-3-12-dependency-for-ansible-devel-version-in-github-actions/44192>\
**Category:** Collection Development\
**Tags:** ubuntu\
**Created:** [August 1, 2025, 1:19pm UTC](https://forum.ansible.com/t/how-to-solve-python-3-12-dependency-for-ansible-devel-version-in-github-actions/44192 "2025-08-01T13:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoeze](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hoeze/32/9132_2.png) [@Hoeze](https://forum.ansible.com/u/Hoeze)\
**Post date:** [August 1, 2025, 1:19pm UTC](https://forum.ansible.com/t/how-to-solve-python-3-12-dependency-for-ansible-devel-version-in-github-actions/44192/1 "2025-08-01T13:19:23Z")

</div>

[Since the latest `devel` version only supports python\>=3.12](https://forum.ansible.com/t/ansible-core-devel-drops-support-for-python-3-11-on-controller/44187), 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:

> <https://github.com/Hoeze/ansible-collection-conda/blob/ba12fad050bcdf3d528cd6686d940bbf0800a407/.github/workflows/ansible-test.yml#L171>

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

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [August 1, 2025, 1:22pm UTC](https://forum.ansible.com/t/how-to-solve-python-3-12-dependency-for-ansible-devel-version-in-github-actions/44192/2 "2025-08-01T13:22:51Z")

</div>

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](https://github.com/ansible-community/ansible-test-gh-action/pull/96)), 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](https://github.com/felixfontein/ansible-test-gh-action/)) 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](https://ansible.readthedocs.io/projects/antsibull-nox/nox-in-ci/#running-ansible-test-ci-matrix-from-nox)), but at least for now the fork should fix your problems.

CC @webknjaz

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [August 6, 2025, 7:08pm UTC](https://forum.ansible.com/t/how-to-solve-python-3-12-dependency-for-ansible-devel-version-in-github-actions/44192/3 "2025-08-06T19:08:28Z")

</div>

The action has been fixed BTW.
