Thanks to visit codestin.com
Credit goes to github.com

Skip to content

python-version-file does not support multiple versions #894

Closed
@astro-stan

Description

@astro-stan

Description:
It is possible to specify multiple python versions like so:

- uses: actions/setup-python@v5
  with:
    python-version: |
      3.8
      3.9
      3.10

However, specifying them like so breaks CI:

.python-version:

3.8
3.9
3.10
- uses: actions/setup-python@v5
   with:
     python-version-file: '.python-version'

Action version:
5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
See description

Expected behavior:
Multiple python versions can be read from .python-version

Actual behavior:
Multiple python versions cannot be read from .python-version

Metadata

Metadata

Assignees

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions