Skip to content

Cannot test matrix.python-version in a if statement if version is dynamic (eg, *, 3.12-dev, 3.x) #644

Description

@lrq3000

Description:
When using a dynamic (x-range) version such as *, 3.12-dev or 3.x, then the usual method of doing conditional steps (by testing in matrix.python-version >= 3.7 for example) does not work.

Action version:
1.5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Dynamic versions.

Repro steps:
See for example the github action config file I used which caused this error:
https://github.com/lrq3000/pyFileFixity/blob/ea3ce6564a145687ca6519e8f5422c38ec88c2a1/.github/workflows/ci-build.yml

And the run:
https://github.com/lrq3000/pyFileFixity/actions/runs/4639718475

Expected behavior:
The dynamic version should resolve to a fixed version after instanciation.

Actual behavior:
Dynamic version remains as-is. If fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions