django-coveragepy-github-action icon indicating copy to clipboard operation
django-coveragepy-github-action copied to clipboard

GitHub action never stops running if coverage doesn't take app name

Open matthew-osidon opened this issue 5 years ago • 1 comments

Hi there

First, thanks for building this action - it is very useful.

I've tried tweaking this so that coverage runs tests for the entire django project and I'm getting strange results. Once the workflow reaches this action, it runs infinitely (over an hour) every time. So the command I'm running is:

coverage run --source "${APP_LOCATION}" manage.py test

Do you have any idea why this would happen?

Running this exact command locally has no issues.

Thanks!

matthew-osidon avatar Feb 24 '20 07:02 matthew-osidon

Hi... I'd discourage that kind of usage. It will try to run the coverage app for your entire virtual environment, and it could take a while depending on how big it is. You are PROBABLY (I'm not sure) going over some limit, maybe memory.

Try to customize the virtual environment setup so it's outside of the project folder and let me know if that fixed the problem.

dc740 avatar Apr 24 '20 02:04 dc740