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

Errors during Build coverage file #83

Open
akzaidi opened this issue Apr 6, 2021 · 1 comment
Open

Errors during Build coverage file #83

akzaidi opened this issue Apr 6, 2021 · 1 comment

Comments

@akzaidi
Copy link

akzaidi commented Apr 6, 2021

Thanks for the workflow template! It is exactly what I was looking for.

Unfortunately, I'm hitting the following error when getting to the Build coverage file:

  python -m pytest --cov='.' tests > pytest-coverage.txt
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.8/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.8/x64/lib
Error: Process completed with exit code 2.

The repository I'm trying to add this workflow to is here.

Any idea what I'm doing wrong? I tried with and without the python -m. My tests are in the tests folder and all the source code is in the top-directory. The tests run fine locally on my machine, but not within the workflow scripts.

Any help would be appreciated. Thanks!

@MishaKav
Copy link

MishaKav commented Jun 2, 2021

Found a solution on similar GitHub Action: Pytest Coverage Comment you can give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants