Lint and test on GitHub Actions#1122
Conversation
|
This all looks fantastic! Thank you! Similar to PyLint, I'd feel okay leaking the coverage key if needed for now. I'm not sure the cause of the mac os failure, but I'm going to work on securing a permanent mac testing machine to help diagnose. Thanks! ~Timothy |
|
You'll need to fetch the coverage token from https://codecov.io/gh/timothycrosley/isort/settings, but I can help set it up, if you like. Would you like it included in this PR or a follow up? It might be better in a follow up, because then GHA will have been enabled in this repo -- it needs the config files to be merged before GHA can be used in PRs. |
Codecov Report
@@ Coverage Diff @@
## develop #1122 +/- ##
===========================================
+ Coverage 95.77% 95.86% +0.09%
===========================================
Files 49 49
Lines 3500 3555 +55
===========================================
+ Hits 3352 3408 +56
+ Misses 148 147 -1
Continue to review full report at Codecov.
|
| poetry install | ||
|
|
||
| - name: Test | ||
| shell: bash |
There was a problem hiding this comment.
There are different defaults for different platforms:
There was a problem hiding this comment.
True, but this runs on macOS and ubuntu, which both default to bash. (actually they default to sh, but unless you need something bash-specific that should be fine)
There was a problem hiding this comment.
Current releases of macOS default to zsh, not bash so I approve of the explicit is better than implicit approach used here.
There was a problem hiding this comment.
it's a nitpick, so i feel fairly indifferent about it.
There was a problem hiding this comment.
Yeah, Windows would be a great addition for the future as AppVeyor is really slow with a single concurrent job:
Not included:
...
- Windows. Omitted for now, the poetry install was failing. As this issue is about replacing Travis and not AppVeyor, that can wait.
For #1121.
ubuntu-latestwith Python 3.8poetry run pytestubuntu-18.04,ubuntu-16.04,macos-latestubuntu-latestwould be enough?Examples:
Not included:
For some reason, 3.8 on macOS is failing:
https://github.com/hugovk/isort/runs/436539509?check_suite_focus=true#step:7:218
Any ideas?