codecov-python
codecov-python copied to clipboard
Added support for Semaphore 2.0
This pull request aims to differentiate between Semaphore Classic
and the new Semaphore 2.0
. It uses the different env vars to detect the difference, specifically the SEMAPHORE_REPO_SLUG
was used because its name should have a low prevalence outside of this context, and its counterpart in 2.0 SEMAPHORE_GIT_REPO_SLUG
is very similar.
I'm unsure what the 'service' field is for and whether it needs to be recognized by codecov server side so I left it on semaphore
Codecov Report
Merging #220 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #220 +/- ##
=====================================
Coverage 0% 0%
=====================================
Files 1 1
Lines 1 1
=====================================
Misses 1 1
Closing due to deprecation