ImperialCollegeLondon / SWMManywhere

SWMManywhere is used to derive and simulate a sewer network anywhere in the world
https://imperialcollegelondon.github.io/SWMManywhere/
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Set up codecov workflow and badges #301

Closed tsmbland closed 1 month ago

tsmbland commented 1 month ago

Description

Adds a step to the CI workflow to upload the coverage report to codecov, and link this page from the documentation.

NOTE: the workflow is currently failing, but we believe it will only work once it has been merged to main

This replaces a half-implemented workflow using the mkdocs-coverage package which would be considerably more effort to set up properly. I also needed to change the coverage report from html to xml to get it working with codecov.

Also adds badges for codecov and PyPI to the readme

Fixes #287

Type of change

Key checklist

Further checks

tsmbland commented 1 month ago

@dalonsoa Please could you generate a codecov token and add to the repository secrets?

dalonsoa commented 1 month ago

Done. It should be available as secrets.CODECOV_TOKEN, I think.

tsmbland commented 1 month ago

Thanks, although it's not finding it for some reason...

tsmbland commented 1 month ago

@dalonsoa You'l have to merge it for me as I'm blocked by branch-protection rules

tsmbland commented 1 month ago

Still not working 😭 😭 😭 😭