Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a output that lists compatible python versions #43

Closed
RonnyPfannschmidt opened this issue Feb 24, 2023 · 10 comments · Fixed by #102
Closed

provide a output that lists compatible python versions #43

RonnyPfannschmidt opened this issue Feb 24, 2023 · 10 comments · Fixed by #102

Comments

@RonnyPfannschmidt
Copy link

often times its nice to have a matrix job for all supported python versions

it would e nice if a optional output for the list of supported github pythons could be provided (as input for a matrix)

@hynek
Copy link
Owner

hynek commented Mar 11, 2023

Could you elaborate more concretely what you have in mind?

@RonnyPfannschmidt
Copy link
Author

Given python requires and the supported python versions of github, I want a json list of supposedly supported pythons on github, so that they can be used in a matrix

@hynek
Copy link
Owner

hynek commented Mar 11, 2023

Yeah but how and where? Like as an action output similar to dist? Can an action return a dict?

@RonnyPfannschmidt
Copy link
Author

It will need to be a string as far as I understood the limitations of github actions

An output similar to dist should suffice

@hynek
Copy link
Owner

hynek commented Mar 11, 2023

So what you want is to build the package as a first step, get a supported_pythons list like '["3.10", "3.11"]' back and then somehow pass it into:

      matrix:
        python-version: ${{ steps.baipp.outputs.supported_pythons }}

or something? How would that work?

@RonnyPfannschmidt
Copy link
Author

Correct

@RonnyPfannschmidt
Copy link
Author

Key problem here is not the list of python versions, but the names github uses for the python action

@hynek
Copy link
Owner

hynek commented Mar 11, 2023

You mean relative to Tox or what?

@RonnyPfannschmidt
Copy link
Author

Relative to the versions available on github for the setup python action

@webknjaz
Copy link
Contributor

So it's about something I've been exploring here: https://github.com/tox-dev/workflow/blob/8ca2e60/.github/workflows/tox.yml#L142.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants