Skip to content

Getting error trying to do something like "Factor-Conditional Settings: Python Version" section #174

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

You must be logged in to vote

Hello @qsebas, thanks for describing the issue in detail. I looked at your project and it seems you're using = instead of : when configuring gh-actions.python. To fix the error, you can make a change like the following:

diff --git a/tox.ini b/tox.ini
index d02d061..0e5cbeb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,12 +23,12 @@ basepython =
 
 [gh-actions]
 python =
-    3.6 = py36
-    3.7 = py37
-    3.8 = py38
-    3.9 = py39
-    3.10 = py310-cov, linters
-    3.11 = py311
+    3.6: py36
+    3.7: py37
+    3.8: py38
+    3.9: py39
+    3.10: py310-cov, linters
+    3.11: py311
 
 [testenv]
 setenv=

I'll file a ticket to make the error reporting nicer in such a case.

By the way, if yo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@kasteph
Comment options

@ymyzk
Comment options

@kasteph
Comment options

Answer selected by qsebas
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
None yet
3 participants