pytest on Github Actions fails when shared among Linux and Windows #10462
-
Hi fellows, I implement a GitHub Action to cover all OS we know (Linux, macOS, Windows). GitHub actions offer the options matrix/strategy to select locally defined variables. However, I fail to use the if clause to choose between different commands. Its definition is on the URL below: https://github.com/quivero/eule/blob/main/.github/workflows/test.yml The
The Windows command run fails to execute the command All necessary error logs are available on the last workflow run of URL below: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, I would try to always execute with
you cannot hard code the path to |
Beta Was this translation helpful? Give feedback.
-
Your name is funny and made me laugh. Btw, the solution works. Thanks. |
Beta Was this translation helpful? Give feedback.
Hey,
I would try to always execute with
python
in both platforms:you cannot hard code the path to
c:\hostedtoolcache\windows\python\3.7.9\x64\python.exe
given that you are setting up multiple Python versions. Thesetup-python
action takes care of putting the right executable onPATH
, so just callingpython
should work.