Repository navigation
Reorganize workflows and add codecov - #267
Conversation
Codecov Report
@@ Coverage Diff @@
## master #267 +/- ##
==========================================
+ Coverage 90.00% 90.18% +0.18%
==========================================
Files 27 27
Lines 1650 1702 +52
==========================================
+ Hits 1485 1535 +50
- Misses 165 167 +2
Continue to review full report at Codecov.
|
amontanez24
left a comment
There was a problem hiding this comment.
Just some small question, but this LGTM!
| branches: [ stable ] | ||
|
|
||
| jobs: | ||
|
|
There was a problem hiding this comment.
What does getting rid of these do?
There was a problem hiding this comment.
Nothing. This is just a format fix: This file had each blank lines that separated blocks, while the other files do not, so I removed them here.
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install invoke .[test] | ||
| - name: Invoke pytest |
There was a problem hiding this comment.
Why do we use tox for some of these and invoke directly in others?
There was a problem hiding this comment.
In general I try using tox everywhere. There are only two exceptions:
- The
tutorialsare not set up as an environment intox, so they need to beinvokeddirectly. This is done like this because they take long to run and when running locally it may be overkill to run them on all the python versions every time one runs thetox(ormake test-all) command. - This
invoke pytest: The reason here being that I want thecoverage.xmlreport to be generated at the root folder forcodecovto find it, and I think that when running the tests throughtoxthe report ends up being generated inside the environment folder, inside the.toxfolder. This may not be right, though, but I just went directly for the known behavior to avoid having to figure out the unknown.
|
@fealho waiting for your OK |
fealho
left a comment
There was a problem hiding this comment.
lgtm. Just a quick question, did you test this in a private fork?
Reorganize the github workflows to have one job per workflow instead of all the jobs in a single one.
Thanks to this change, if one specific job fails for any reason and needs to be re-executed all the other jobs do not need to be run again.
Also, add coverage report to pytest and
codecovaction to upload coverage to codecov.io