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
Python coverage support broken (v0.6.10 of coveralls report problem) #205
Comments
Disable coveralls until coverallsapp/github-action#205 is resolved
Hello there. I have same issue :) This is caused by PR coverallsapp/coverage-reporter#122 , but not sure - how to fix that :) |
I dropped the action and I'm just using coveralls reporter 0.6.9, which works for Python. I couldn't get 0.6.10 working, I tried using the recommended XML export and also installing the Python coverage tool, always failed. I use something like this: - name: Upload Coverage optional
env:
COVERALLS_DEBUG: true
COVERALLS_FLAG_NAME: ${{ matrix.ki_release }}_${{ matrix.w_tests }}
COVERALLS_PARALLEL: true
COVERALLS_ENDPOINT: https://coveralls.io
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SOURCE_HEADER: github-action
run: |
mkdir -p ~/bin/
echo ~/bin >> $GITHUB_PATH
export CURDIR=`pwd`
cd ~/bin/
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/download/v0.6.9/coveralls-linux.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/download/v0.6.9/coveralls-checksums.txt
cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check
tar -xzf coveralls-linux.tar.gz
rm coveralls-checksums.txt
cd ${CURDIR}
~/bin/coveralls report --debug --format python .coverage |
Hi @set-soft. It looks like the issue might be with your last line. That is to say, there is an issue with your last line that will cause an error: ( Let me know if you have any luck with It's great that you're using the |
I also tried this (before python), didn't work.
When I tried using cobertura I got
You can see the run here I also tried removing the .coverage file here
Lamentably I didn't have debug enabled when I tried cobertura. |
Hi @set-soft. I submitted this as a potential issue with If you're concerned about getting it to work before we can have a look, I suggest renaming that directory if feasible. I'll update you here when I hear back. |
@set-soft. Follow-up clarification from my team member: When you said:
Can I confirm that you mean you removed any and all Specifically, did you remove the Thanks 🙏 |
Hi @afinetooth ! Take a look at the Upload Coverage optional (requisite) step, it does So .coverage was a file, not a directory, and was removed to avoid confusion. You can see the output of the ls command at the end of the step Collect coverage ki8 it says:
This step ran:
I never knew what directory was the problem. I tried running the same docker image in my local machine and tried to reproduce the steps, I got:
I used |
I just encountered this. I was able to work around it by specifying using lcov format also produced correct results, whereas with the default |
Yesterday the "coveralls report" 0.6.10 was released. This started to generate the following error:
Forcing the format to python I got:
The first option seems to be impossible for an action. So I tried the second. Now I get:
I still trying things, but I think the action should fix it.
The text was updated successfully, but these errors were encountered: