-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into trainRFCmd
- Loading branch information
Showing
188 changed files
with
55,402 additions
and
3,561 deletions.
There are no files selected for viewing
This file contains 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,70 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
|
||
# | ||
# Notes: | ||
# - we need to install pypandoc first as it is needed by pyspark setup | ||
# - using python 3.7 because platform specific wheel for pandas 0.23.x required | ||
# by hail is not available for python 3.8 | ||
# | ||
|
||
name: Verify | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- branch-* | ||
pull_request: | ||
branches: | ||
- master | ||
- branch-* | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILD_TYPE: issue | ||
steps: | ||
- name: Extract version from branch name (for release branches) | ||
if: startsWith(github.event.pull_request.head.ref, 'release/') | ||
run: | | ||
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | ||
VERSION=${BRANCH_NAME#release/} | ||
echo "BUILD_VERSION=$VERSION" >> $GITHUB_ENV | ||
echo "BUILD_TYPE=release" >> $GITHUB_ENV | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Cache Python packages | ||
uses: actions/cache@v2 | ||
id: pythoncache | ||
with: | ||
path: /home/runner/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('dev/dev-requirements.txt') }} | ||
restore-keys: ${{ runner.os }}-pip | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip cache dir | ||
pip install pypandoc==1.5 | ||
if [ -f dev/dev-requirements.txt ]; then pip install -r dev/dev-requirements.txt; fi | ||
- name: Validate Python code | ||
run: pylint --max-line-length=140 python/varspark --rcfile python/pylintrc | ||
- name: Build with Maven | ||
run: mvn -Dbuild.type=${BUILD_TYPE} -B package --file pom.xml | ||
- name: Test with pytest | ||
run: | | ||
dev/py-test.sh |
This file contains 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,92 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
|
||
# | ||
# Notes: | ||
# - we need to install pypandoc first as it is needed by pyspark setup | ||
# - using python 3.7 because platform specific wheel for pandas 0.23.x required | ||
# by hail is not available for python 3.8 | ||
# | ||
|
||
name: Publish Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v**' | ||
jobs: | ||
deploy: | ||
name: Deploy to Maven Central and PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Cache Python packages | ||
uses: actions/cache@v2 | ||
id: pythoncache | ||
with: | ||
path: /home/runner/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('dev/dev-requirements.txt') }} | ||
restore-keys: ${{ runner.os }}-pip | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip cache dir | ||
pip install pypandoc==1.5 setuptools wheel twine | ||
if [ -f dev/dev-requirements.txt ]; then pip install -r dev/dev-requirements.txt; fi | ||
- name: Install GPG key | ||
run: | | ||
cat <(echo -e "${{ secrets.GPG_KEY }}") | gpg --batch --import | ||
gpg --list-secret-keys --keyid-format LONG | ||
- name: Configure Maven settings | ||
uses: s4u/maven-settings-action@v2.6.0 | ||
with: | ||
servers: | | ||
[{ | ||
"id": "ossrh", | ||
"username": "${{ secrets.OSSRH_USERNAME }}", | ||
"password": "${{ secrets.OSSRH_PASSWORD }}" | ||
}] | ||
- name: Build with Maven | ||
run: | | ||
mvn -Prelease -DskipTests=true -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" \ | ||
--batch-mode --file pom.xml \ | ||
deploy | ||
- name: Build and publish to PyPI | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
cd python | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
create-release: | ||
name: Draft GitHub release | ||
runs-on: ubuntu-latest | ||
needs: [ deploy ] | ||
steps: | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: true | ||
prerelease: true |
This file contains 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 |
---|---|---|
|
@@ -59,3 +59,7 @@ dist | |
_build | ||
spark-warehouse | ||
.*.crc | ||
|
||
|
||
|
||
version.py |
This file contains 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,16 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: python/docs/conf.py | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: 3.6 | ||
install: | ||
- requirements: dev/rtd-requirements.txt |
This file was deleted.
Oops, something went wrong.
This file contains 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 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
Oops, something went wrong.