-
Notifications
You must be signed in to change notification settings - Fork 148
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
setup coverage.py in tox env #217
Conversation
Noting that the towncrier github actions check is failing. Looks like an error with a config file somewhere (git produced output while failing: |
The command that I'd probably play around in this PR (or another) and try to get some information out of GitHub Actions in terms of how it's set it's remotes and branches up. |
Looks good!
|
As to the towncrier bit... by default GitHub Actions does a shallow clone of the repo which has only one commit: the result of the proposed merge. So there's no actual history there to compare against. Solving that properly is a bit of a rabbit hole, but I think setting:
would get you a full history, check out the actual branch head (not the proposed merge) and allow the check to work. |
Ok cool I will open a different PR for the towncrier issue and see if I can't get it working using the insight you both offered. I've updated the PR to add the other changes related to coverage. However I have one question: In terms only running the coverage reports if the |
Oh, cool! You're probably totally good there, then :) |
Great then this should be all set to go! |
@callahad I think you have most context here so if you have the cycles to pick up the review that would be appreciated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks! Could you please:
- Merge
origin/master
(or rebase ontoorigin/master
) so we can get working towncrier checks - Add
coverage~=5.5
as a dependency somewhere to ensure that a cleantox
virtual environment has access to it? (e.g., it could be a dev dependency in setup.py, or a one-offdeps
entry in thetox.ini
testenv.
Alright I think that did it. Thank you! |
We're almost good :) The |
Thanks for the hand-holding, I am actually learning a lot. Hopefully this is the last update! |
Thank you so much! |
Oh, hey, could you sign-off on a commit in this branch, please? You can do a |
Sygnal 0.9.3 (2021-04-22) ========================= Features -------- - Prevent the push key from being rejected for temporary errors and oversized payloads, add TTL logging, and support `events_only` push data flag. ([\matrix-org#212](matrix-org#212)) - WebPush: add support for Urgency and Topic header ([\matrix-org#213](matrix-org#213)) Bugfixes -------- - Fix a long-standing bug where invalid JSON would be accepted over the HTTP interfaces. ([\matrix-org#216](matrix-org#216)) - Limit the size of requests received from HTTP clients. ([\matrix-org#220](matrix-org#220)) Updates to the Docker image --------------------------- - Remove manually added GeoTrust Root CA certificate from docker image as Apple is no longer using it. ([\matrix-org#208](matrix-org#208)) Improved Documentation ---------------------- - Make `CONTIBUTING.md` more explicit about how to get tests passing. ([\matrix-org#188](matrix-org#188)) - Update `CONTRIBUTING.md` to specify how to run code style and type checks with Tox, and add formatting to code block samples. ([\matrix-org#193](matrix-org#193)) - Document how to work around pip installation timeout errors. Contributed by Omar Mohamed. ([\matrix-org#215](matrix-org#215)) Internal Changes ---------------- - Update Tox to run in the installed version of Python (instead of specifying Python 3.7) and to consider specific paths and folders while running checks, instead of the whole repository (potentially including unwanted files and folders, e.g. the virtual environment). ([\matrix-org#193](matrix-org#193)) - Make development dependencies available as extras. Contributed by Hillery Shay. ([\matrix-org#194](matrix-org#194)) - Update `setup.py` to specify that a minimum version of Python greater or equal to 3.7 is required. Contributed by Tawanda Moyo. ([\matrix-org#207](matrix-org#207)) - Port CI checks to Github Actions. ([\matrix-org#210](matrix-org#210), [\matrix-org#219](matrix-org#219)) - Upgrade development dependencies. Contributed by Omar Mohamed ([\matrix-org#214](matrix-org#214)) - Set up `coverage.py` to run in tox environment, and add html reports ([\matrix-org#217](matrix-org#217)) Change-Id: I14ae821ff2a1562e91fd87ce25f73baaa0b9430b
Hopefully this satisfies the first part of #200 (comment). If so, I'll move on to adding reports to Github actions, etc. Thanks!