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

Matrix Target "3.10" gets interpreted as "3.1" #198

Closed
2 of 7 tasks
raphael-riel opened this issue Apr 2, 2021 · 2 comments
Closed
2 of 7 tasks

Matrix Target "3.10" gets interpreted as "3.1" #198

raphael-riel opened this issue Apr 2, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@raphael-riel
Copy link

Describe the bug
Trying to setup Python 3.10 Alpha as a Tox target in a Matrix.
image

Gets converted to "3.1"
image

Which version of the action are you using?

  • v1
  • v2
  • Some other tag (such as v2.0.1 or master)

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac

If applicable, please specify if you're using a container

Python Versions
3.10

To Reproduce
Action:

name: On Push

on: [push]

jobs:
  unit-tests:
    name: Unit tests
    runs-on: ubuntu-latest
    continue-on-error: true

    strategy:
      matrix:
        python: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10]

      fail-fast: false

    steps:
      - uses: actions/checkout@v2

      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
@raphael-riel raphael-riel added the bug Something isn't working label Apr 2, 2021
@nulano
Copy link

nulano commented Apr 2, 2021

The yaml format treats it as a float, that's not a fault of this action. You can put it in quotes to prevent that: "3.10".

However, since 3.10 hasn't been released yet, I don't think that will work either (although I haven't tried it). Instead you can use 3.10-dev for now, see also #177.

@raphael-riel
Copy link
Author

@nulano You're right! Totally a YAML issue and not for this project. Thanks for the hint.

Also, for posterity:

"3.10-dev" will install an interpreter (as of this comment) named 3.10.0-alpha.6.
So for tox config, I had to map my env this way: py-3.10-dev: python3.10. Only then I was able to run my CI on Pre-Releases of Python 3.10.

I'll close as this is not an issue for this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants