Skip to content

Valid versioning syntax when specifying Python version in tox.ini #153

Closed Answered by ymyzk
inwaves asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @inwaves, thanks for filing a ticket.

I'd like to understand your requirement a bit more carefully.

As explained in our document, tox-gh-actions can be used with pre-released Python versions. The point is that we shouldn't specify micro and release level in the tox-gh-actions' config even when we're using a pre-released version. tox-gh-actions doesn't care whether a Python version is pre-release or not at this point.

.github/workflows/<workflow>.yml:

...
jobs:
  build:
    strategy:
      matrix:
        python-version: ['3.10', 3.11.0-beta.3]
...

tox.ini:

[tox]
envlist = py310, py311

[gh-actions]
python =
    3.10: py310
    3.11: py311
    # The following won't work
    # 3.11-b…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ymyzk
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Asks a question about tox-gh-actions
2 participants
Converted from issue

This discussion was converted from issue #132 on April 05, 2023 14:02.