djangogirls icon indicating copy to clipboard operation
djangogirls copied to clipboard

Actions Workflow cleanups.

Open carltongibson opened this issue 3 years ago • 10 comments

f72addf00609a4955c107e43a2888569ae1d1cf4 adjusted the actions workflow, leaving a couple of TODOs commented out.

  • [ ] Notifications
  • [x] Dependency Caching
  • [x] Notifying codecov.

Each one can be uncommented in a fresh PR, and seeing if it passes straight-off, or what adjustments are needed. (I commented the codecov one initially trying to get the workflow to run; it may just work. GHA complained about the other two, so I imagine something needs to be done there.)

Reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

carltongibson avatar Jul 09 '21 09:07 carltongibson

Ok, been trying to sort codecov, but having an issue with the database not being accessible to the tests.

https://github.com/marksweb/djangogirls/runs/3355839128?check_suite_focus=true

Not yet figured out why. I've fiddled the project settings a little so that the database can be more configurable and doesn't assume localhost etc.

marksweb avatar Aug 17 '21 23:08 marksweb

@marksweb ok, thanks. We can still use the Actions built-in one coverage. We just need to know our code coverage.

amakarudze avatar Aug 18 '21 09:08 amakarudze

@amakarudze Actually my action is running today, where it wasn't last night (using the same setup). I think there was some caching going on last night, because it was running (and failing) very quickly compared to what I've just seen.

There's a little more config to do in order to generate the coverage files to upload, but it's nearly there now 👍

marksweb avatar Aug 18 '21 10:08 marksweb

That's good to hear @marksweb! Thank you for all your help.

amakarudze avatar Aug 18 '21 12:08 amakarudze

I'm not sure what the slack action does, but I think it could/should have limits put on where it runs.

I don't think it's restricted at all so I'm getting failure notifications every time I push to a branch.

marksweb avatar Aug 19 '21 00:08 marksweb

@marksweb the Slack action should only send notifications to the #notifications channel on Slack saying whether a build was successful or not. At least that's what we are trying to do.

amakarudze avatar Aug 19 '21 15:08 amakarudze

@amakarudze So just pushes to the main branch would be ok? Or pull requests also?

marksweb avatar Aug 19 '21 15:08 marksweb

@marksweb Pushes to main branches and pull requests as well.

amakarudze avatar Aug 19 '21 15:08 amakarudze

@amakarudze Thanks for confirming - I've put the necessary restrictions on it; https://github.com/DjangoGirls/djangogirls/pull/645

marksweb avatar Aug 19 '21 15:08 marksweb

@marksweb maybe we can remove Slack notifications for now so that builds don't fail?

amakarudze avatar Aug 19 '21 17:08 amakarudze