Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GitHub Actions #270

Merged
merged 5 commits into from
Nov 27, 2020
Merged

Migrate to GitHub Actions #270

merged 5 commits into from
Nov 27, 2020

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Nov 26, 2020

Travis CI has a new pricing model which places limits on open source.

Many projects are moving to GitHub Actions instead, including Jazzband projects:

This is based on jazzband/contextlib2#26.

TODO:

  • @jezdez to add JAZZBAND_RELEASE_KEY to the repo secrets.

@codecov
Copy link

codecov bot commented Nov 26, 2020

Codecov Report

Merging #270 (f5bebd4) into master (3305de9) will increase coverage by 1.54%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #270      +/-   ##
==========================================
+ Coverage   88.41%   89.96%   +1.54%     
==========================================
  Files          26       26              
  Lines        1226     1226              
  Branches      107      107              
==========================================
+ Hits         1084     1103      +19     
+ Misses        111       91      -20     
- Partials       31       32       +1     
Impacted Files Coverage Δ
configurations/base.py 84.12% <0.00%> (+1.58%) ⬆️
configurations/importer.py 85.47% <0.00%> (+1.70%) ⬆️
configurations/utils.py 48.48% <0.00%> (+14.14%) ⬆️
tests/setup_test.py 100.00% <0.00%> (+18.18%) ⬆️

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 3305de9...f5bebd4. Read the comment docs.

@jezdez jezdez requested a review from hugovk November 26, 2020 16:09
MANIFEST.in Show resolved Hide resolved
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
name: Python ${{ matrix.python-version }}
Copy link
Member

Choose a reason for hiding this comment

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

The original command for Travis has a bunch of options which aren't used now:

codecov --required -X gcov fix pycov -f coverage.xml --flags ${TOXENV//-/ }

I've not looked those up, but it doesn't seem to have affected coverage? In fact, it's gone up a bit.

I don't think there's analogues for all those options with the action, but at least flags can be added in the with: section:

https://github.com/codecov/codecov-action

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I looked at them, I only see --required easy to reply, with fail_ci_if_error = true.

-X to disable a feature seems to be not supported by the action.
coverage.xml is automatically found already.
--flags with the tox environment isn't useful anymore since in the new GHA test workflow the test matrix doesn't use TOXENV anymore, so couldn't be used. Unless I'm misunderstanding the notation of ${TOXENV//-/ }? Does this make sense to you?

Copy link
Member

Choose a reason for hiding this comment

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

I'm also not sure what ${TOXENV//-/ } means, but I don't see any $TOXENV actually used in the old Travis CI file, so probably fine to skip 👍

@jezdez jezdez requested a review from hugovk November 27, 2020 08:59
@jezdez jezdez merged commit 78f9824 into master Nov 27, 2020
@hugovk hugovk deleted the gha branch November 27, 2020 16:38
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.

2 participants