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

Support python-version-file argument for setup-python #14

Open
evansd opened this issue Oct 25, 2024 · 0 comments
Open

Support python-version-file argument for setup-python #14

evansd opened this issue Oct 25, 2024 · 0 comments

Comments

@evansd
Copy link

evansd commented Oct 25, 2024

This would allow us to avoid repeatedly hardcoding the Python version throughout the workflow files and give us a single place to update:
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-file-input

I imagine using it like:

steps:
  - uses: "opensafely-core/setup-action@v1"
    with:
      python-version-file: ".python-version"
      cache-dependency-path: "requirements.*.txt"
      install-just: true
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

No branches or pull requests

1 participant