allow user to specify list of base Python versions, to bypass retrieving from https://endoflife.date#403
Conversation
| required: true | ||
| type: string | ||
| python-versions: | ||
| description: use these versions (i.e. `3.11 3.12 3.14`) for Python version glob expansion (`py*`), instead of retrieving active versions from https://endoflife.date |
There was a problem hiding this comment.
I kinda see the use of this, but if you don't want to rely on endoflife.date surely you can just list out the python versions in the envs?
There was a problem hiding this comment.
oh in the envs! Good idea I'll write that up
oh you meant in envs: not in the environment variables. That might still be a good idea though
There was a problem hiding this comment.
oh never mind; you can't pass environment variables directly to a workflow_call. I think this change is still useful in the situation where you do want dynamic versions, but only narrowed from a specific base list of versions (say in case you don't want a new Python version to immediately break CI workflows so you keep a lagging list of versions, but you still want it to be tested in a devdeps workflow or something similar)
There was a problem hiding this comment.
I guess I don't really know why you would do this:
envs:
- py*-test
python-versions: ["3.11", "3.12", "3.13"]
rather than this:
envs:
- py311-test
- py312-test
- py313-test
This feels like feature creep to me, when there's a way of comparable verbosity already?
56073cd to
625a1ec
Compare
625a1ec to
7809457
Compare
another idea to build on top of #392, for users who might want to constrain the list of "testable" versions for whatever reason