Skip to content

pytest on Github Actions fails when shared among Linux and Windows #10462

Answered by nicoddemus
brunolnetto asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

I would try to always execute with python in both platforms:

      run: |
        python -m pip install -r requirements_dev.txt  
        python -m pytest --cov=./ --cov-report=xml  

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. The setup-python action takes care of putting the right executable on PATH, so just calling python should work.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brunolnetto
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
2 participants