-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add support for GitHub actions #837
Conversation
This is great! Are you willing to maintain it? I don't think it would be a big job for someone who understands CI. Mostly responding to issues and questions, with an occasional feature request. |
Yes, I should be able to maintain it, as I use github CI on other projects. There are a lot of things that could be added to CI - for example, check all supported python versions, or do some code linting. |
Merged into branch |
First issue. A CI test is failing because a We require something greater than V9.2 (current version is 9.4). Is there any way to see what version is being installed by |
Looks like python3-pillow is a virtual package pointing to python3-pil: https://packages.debian.org/stable/python3-pillow Log on CI says that we are installing this version: So, a bit too old. What I can do is add a step to run |
The problem is only in the V5 branch, which includes workarounds for some deprecations in Pillow. So, how about leave |
I got an email the other day saying that my fork of weewx was (much to my surprise) running CI tasks when I push to my fork. I suspect the other 280 fork owners would be similarly surprised and possibly confused by such unexpected email from github. While we can individually turn this off by digging through the docs and setting parameters for each repo we fork, shouldn't the default be 'off' for forks ? I found one reference that seems to say a quick addition to your CI setup might do the trick if you look at the suggested solution here - https://github.com/orgs/community/discussions/26704#discussioncomment-3252979 It seems that a one-liner on line 8 of ci.yaml might restrict running the CI suite to only the real repo (not the forks): I don't speak github CI well enough to know if this would restrict any other use cases folks have. It's of course possible that some folks with forks might 'want' the CI stuff to run for their forks too, so I guess give it some thought please. |
That's a good point, but I don't have a good answer: it would be best if CI was disabled by default on github forks. Note two things:
|
Looks to me like the CI stuff is on for the currently active branches (master, development, V5). Problem is that posting about this one to the -development list might confuse folks more than just waiting for the next person to encounter it and ask. Would a small 'Forking the WeeWX GitHub repository' section ala my comment above in the Developer's Notes document perhaps be worth thinking about ? It did take a little searching to find the easy procedure to let me disable that stuff for my fork. I'd be willing to add a section to the Developer's Notes if you+Tom want. |
@vinceskahan : this seems a good idea, but I'm not a weewx mainteneur :) @tkeffer : do you agree with the documentation update above? |
Seems like a good idea. |
ok - let me add a brief paragraph to the Developer's Notes in a separate PR. Thanks. |
This would be very useful to automatically check commits and pull-requests with current unit tests.