-
Notifications
You must be signed in to change notification settings - Fork 367
Migrate to GitHub Actions #1254
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
5aa45d4
Add `master.yml` for GitHub Actions
itholic a2caf75
rearrange & add badge to README.md
itholic eebf73d
[Add badge to README.md] & [Resolve Tkinter issue]
itholic afde834
revert unncessary change
itholic d7c2183
pytest with xvfb
itholic f81420e
remove unused env: DISPLAY
itholic 01b9d17
remove unused env: DISPLAY
itholic dedb4af
Remove unused dependencies & add wheel for python3.5
itholic 30c169f
fix comment for xvfb
itholic c5fd385
Add cache
itholic 87740aa
[Add] conda for 3.6 & 3.7
itholic 8338311
Build Status -> Travis CI
itholic aebfd56
Remove apt-get update
itholic b826e6a
Remove env: QT_QPA_PLATFORM
itholic a1bc99e
Add env: PYTHON_EXECUTABLE
itholic f291e15
Change comment for xvfb-run
itholic 38d9798
Update pytest
itholic 0c3e4e5
Update comment for xvfb
itholic 3dd6f7b
update comment about xvfb
itholic 45270fa
fix
itholic 31c5088
fix & cleanup pakcages for python3.5
itholic d049ace
move comment & remove logger for some place
itholic d228afa
remove unused line
itholic 20a7538
remove comment for xvfb
itholic 8a95dce
[TEST] remove pip install pyspark
itholic c162736
Fixing & Applying the matrix
itholic eb14acd
Set env using matrix
itholic 48abbf3
Fix typo
itholic 7808a84
Add comment for QT_QPA_PLATFORM
itholic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| name: master | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| python35: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| SPARK_VERSION: 2.3.4 | ||
| PANDAS_VERSION: 0.23.4 | ||
| PYARROW_VERSION: 0.10.0 | ||
| PYTHON_EXECUTABLE: xvfb-run python | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 1.8 | ||
| - name: Using cache | ||
| uses: actions/cache@v1 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip- | ||
| # Setup Python3.5 via `apt-get install` since the dafault Python3.5 from `actions/setup-python` | ||
| # seems to have some problem with Tkinter, so we should manually install the python3.5-tk. | ||
| # for this, we should use the Python manually installed, not the default one from `actions/setup-python` | ||
| - name: Setup Python 3.5 | ||
| run: | | ||
| sudo add-apt-repository ppa:deadsnakes/ppa | ||
| sudo apt-get install tk-dev python3.5-tk python3.5 | ||
| sudo rm /usr/bin/python | ||
| sudo ln -s /usr/bin/python3.5 /usr/bin/python | ||
| # Below command is required for ensuring pip installed executables to be in the path. | ||
| echo "::add-path::/home/runner/.local/bin" | ||
| - name: Install dependencies & run tests | ||
| run: | | ||
| ./dev/download_travis_dependencies.sh | ||
| sudo apt-get install xclip | ||
| pip install setuptools | ||
| pip install -r requirements-dev.txt | ||
| pip install pandas==$PANDAS_VERSION pyarrow==$PYARROW_VERSION | ||
| pip list | ||
| export SPARK_HOME="$HOME/.cache/spark-versions/spark-$SPARK_VERSION-bin-hadoop2.7" | ||
itholic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ./dev/lint-python | ||
| ./dev/pytest | ||
| # Push the results back to codecov | ||
| - name: Update Codecov | ||
| run: bash <(curl -s https://codecov.io/bash) | ||
|
|
||
| python: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: [3.6, 3.7] | ||
| include: | ||
| - python-version: 3.6 | ||
| spark-version: 2.4.4 | ||
| pandas-version: 0.24.2 | ||
| pyarrow-version: 0.13.0 | ||
| logger: databricks.koalas.usage_logging.usage_logger | ||
| - python-version: 3.7 | ||
| spark-version: 2.4.4 | ||
| pandas-version: 0.25.3 | ||
| pyarrow-version: 0.14.1 | ||
| env: | ||
| PYTHON_VERSION: ${{ matrix.python-version }} | ||
| SPARK_VERSION: ${{ matrix.spark-version }} | ||
| PANDAS_VERSION: ${{ matrix.pandas-version }} | ||
| PYARROW_VERSION: ${{ matrix.pyarrow-version }} | ||
| DISPLAY: 0.0 | ||
| # `QT_QPA_PLATFORM` for resolving 'QXcbConnection: Could not connect to display :0.0' | ||
| QT_QPA_PLATFORM: offscreen | ||
| KOALAS_USAGE_LOGGER: ${{ matrix.logger }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 1.8 | ||
| - name: Using cache | ||
| uses: actions/cache@v1 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip- | ||
| - name: Install dependencies & run tests | ||
| run: | | ||
| ./dev/download_travis_dependencies.sh | ||
| curl -s https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh | ||
| bash miniconda.sh -b -p $HOME/miniconda | ||
| . $HOME/miniconda/etc/profile.d/conda.sh | ||
| hash -r | ||
| conda config --set always_yes yes --set changeps1 no | ||
| conda update -q conda | ||
| # Useful for debugging any issues with conda | ||
| conda info -a | ||
| # Replace dep1 dep2 ... with your dependencies | ||
| conda create -c conda-forge -q -n test-environment python=$PYTHON_VERSION | ||
| conda activate test-environment | ||
| conda install -c conda-forge --yes codecov | ||
| conda config --env --add pinned_packages python=$PYTHON_VERSION | ||
| conda config --env --add pinned_packages pandas==$PANDAS_VERSION | ||
| conda config --env --add pinned_packages pyarrow==$PYARROW_VERSION | ||
| conda install -c conda-forge --yes pandas==$PANDAS_VERSION pyarrow==$PYARROW_VERSION | ||
| conda install -c conda-forge --yes --freeze-installed --file requirements-dev.txt | ||
| conda list | ||
| export SPARK_HOME="$HOME/.cache/spark-versions/spark-$SPARK_VERSION-bin-hadoop2.7" | ||
| ./dev/lint-python | ||
| ./dev/pytest | ||
| # Push the results back to codecov | ||
| - name: Update Codecov | ||
| run: bash <(curl -s https://codecov.io/bash) | ||
itholic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.