Skip to content

Reorganize workflows and add codecov - #267

Merged
csala merged 2 commits into
masterfrom
reorganize-github-workflows
Sep 10, 2021
Merged

csala merged 2 commits into
masterfrom
reorganize-github-workflows

Conversation

@csala

@csala csala commented Aug 11, 2021

Copy link
Copy Markdown
Contributor

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 codecov action to upload coverage to codecov.io

@csala
csala requested review from a team, amontanez24 and fealho and removed request for a team August 11, 2021 16:41
@codecov-commenter

codecov-commenter commented Aug 11, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #267 (47a9062) into master (f5c45d0) will increase coverage by 0.18%.
The diff coverage is 91.95%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
copulas/visualization.py 29.87% <28.57%> (-3.92%) ⬇️
copulas/univariate/base.py 88.75% <80.00%> (+0.47%) ⬆️
copulas/__init__.py 97.72% <100.00%> (+0.05%) ⬆️
copulas/multivariate/gaussian.py 95.34% <100.00%> (+1.17%) ⬆️
copulas/univariate/beta.py 100.00% <100.00%> (ø)
copulas/univariate/gamma.py 100.00% <100.00%> (ø)
copulas/univariate/gaussian.py 100.00% <100.00%> (ø)
copulas/univariate/gaussian_kde.py 98.73% <100.00%> (+0.16%) ⬆️
copulas/univariate/log_laplace.py 100.00% <100.00%> (ø)
copulas/univariate/selection.py 100.00% <100.00%> (+11.76%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d7f4e3...47a9062. Read the comment docs.

@amontanez24 amontanez24 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small question, but this LGTM!

branches: [ stable ]

jobs:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does getting rid of these do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/lint.yml Resolved
run: |
python -m pip install --upgrade pip
python -m pip install invoke .[test]
- name: Invoke pytest

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we use tox for some of these and invoke directly in others?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I try using tox everywhere. There are only two exceptions:

  • The tutorials are not set up as an environment in tox, so they need to be invoked directly. 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 the tox (or make test-all) command.
  • This invoke pytest: The reason here being that I want the coverage.xml report to be generated at the root folder for codecov to find it, and I think that when running the tests through tox the report ends up being generated inside the environment folder, inside the .tox folder. This may not be right, though, but I just went directly for the known behavior to avoid having to figure out the unknown.

@csala

csala commented Aug 27, 2021

Copy link
Copy Markdown
Contributor Author

@fealho waiting for your OK

@fealho fealho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Just a quick question, did you test this in a private fork?

@csala
csala merged commit 994f275 into master Sep 10, 2021
@csala
csala deleted the reorganize-github-workflows branch September 10, 2021 11:43
@amontanez24 amontanez24 added this to the 0.6.0 milestone Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants