-
Notifications
You must be signed in to change notification settings - Fork 358
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
Cache properly for conda env, name jobs pretty and separate dependency installation and run tests in Github Actions #1264
Conversation
HyukjinKwon
commented
Feb 9, 2020
•
edited
Loading
edited
- Cache properly for conda env. We should better cache environment.
- Name jobs pretty
- Separate dependency installation and run tests in Github Actions
- Minor commets fixes.
2817ad8
to
970c1fc
Compare
just FYI maybe you already know that:
strategy:
matrix:
python-version: [3.6, 3.7]
fail-fast: false # default true |
Codecov Report
@@ Coverage Diff @@
## master #1264 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 35 35
Lines 7151 7151
=======================================
Hits 6805 6805
Misses 346 346 Continue to review full report at Codecov.
|
Yeah, I have a bit of experience with Github Actions :-). |
8636d1e
to
e493177
Compare
okay.. seems working fine. |
f1d7fbe
to
103835a
Compare
BTW, I discussed offline with @ueshin. Let's keep Travis CI for now and see how Github Actions build are stable. |
@HyukjinKwon okay, i also think it's better |
.github/workflows/master.yml
Outdated
runs-on: ubuntu-latest | ||
env: | ||
SPARK_VERSION: 2.3.4 | ||
PANDAS_VERSION: 0.23.4 | ||
PYARROW_VERSION: 0.10.0 | ||
# DISPLAY=0.0 does not work in Github Actions with Python 3.5. Here we work around wtih xvfb-run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: seems to be there are two spaces between wtih
and xvfb-run
# for some reasons we should add enviornment directory manually to allow for | ||
# 'test-enviornment' to be found. See also https://github.com/conda/conda/issues/7980 | ||
. $HOME/miniconda/etc/profile.d/conda.sh | ||
conda config --prepend envs_dirs /home/runner/miniconda/envs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
LGTM |
Github Actions passed. I will just merge. |