cal-itp/data-infra

Bug: Python 3.12 Breaks Linting CI Task

Closed this issue · 0 comments

Describe the bug

As described here, the setup-python action now defaults to the latest stable Python version, 3.12. This broke Poetry's install process for the grpcio package during runs of the linting GitHub Actions workflow. We resolved the issue temporarily by pinning the version of Python brought in by setup-python for that workflow. Ideally, we'd like to unpin that version and successfully use 3.12 for the CI runs. We expect this will be possible once Poetry 1.7.0 is released, and to succeed we'll need to switch our use of Poetry over to 1.7.0.

To Reproduce
Simply unpin the version of Python referenced by the setup-python Action in the linting GitHub Actions workflow, or attempt to poetry install grpcio within a GitHub action anywhere that Python 3.12 is in use.

Expected behavior
We should be able to run poetry install without failure when using Python 3.12.