-
Notifications
You must be signed in to change notification settings - Fork 185
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
Use new UnitTesting github actions #1897
Conversation
Well, coverage works without the token. |
Codecov token is not needed for public repo. With that said, we should have the options to specify it (in case it is a private Sublime Text package). |
I guess it's okay to work without coverage. It doesn't work well anyway because the coverage is not computed from code running in the worker thread from what I remember. |
Looks like there is a bug in UnitTesting preventing upload: SublimeText/UnitTesting@4ba3426 |
The |
Yeah, the coverage numbers for sessions.py are pretty low:
so I guess you are right. We still have the report in the output but won't be using the upload. Thanks @randy3k for fixing anyway. |
|
Just pushed a workaround to detect coverage in the worker thread (inspired by nedbat/coveragepy#686). |
It doesn't seem like the coverage has improved - https://github.com/sublimelsp/LSP/runs/4197708709?check_suite_focus=true
|
Um, it is because I am still not very certain about the workaround. So better to make it off first. |
Sure, just checking it out for fun. |
Definitely a coverage increment here. |
Now it's better:
Not sure how accurate it is now but certainly better. |
This reverts commit 9e5c3d9.
The codecov report is more readable. |
This reverts commit 17b53f0.
Strange to me that the lines that declare a function or method ( But still could be useful to track relative changes, of course. |
You have turned off The code is loaded by Sublime before coverage starts. We'll need to reload the package to get those lines covered. |
I think reloading the package makes things a bit flaky... |
It could be. However, I think the Windows failure is kind of random error. |
This reverts commit de79517.
but then I've re-run and mac failed |
It could be the new workaround for worker thread. It will definitely make things slower. |
Not sure about coverage since I don't see an option to pass the token. But then I don't think we actually care about coverage.
@randy3k