-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 addTestUtils
- Loading branch information
Showing
69 changed files
with
2,544 additions
and
870 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,64 @@ | ||
name: "Delta Iceberg Latest" | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
name: "DIL: Scala ${{ matrix.scala }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
# These Scala versions must match those in the build.sbt | ||
scala: [2.12.18, 2.13.13] | ||
env: | ||
SCALA_VERSION: ${{ matrix.scala }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# TODO we can make this more selective | ||
- uses: technote-space/get-diff-action@v4 | ||
id: git-diff | ||
with: | ||
PATTERNS: | | ||
** | ||
.github/workflows/** | ||
!kernel/** | ||
!connectors/** | ||
- name: install java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "zulu" | ||
java-version: "8" | ||
- name: Cache Scala, SBT | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2 | ||
~/.cache/coursier | ||
# Change the key if dependencies are changed. For each key, GitHub Actions will cache the | ||
# the above directories when we use the key for the first time. After that, each run will | ||
# just use the cache. The cache is immutable so we need to use a new key when trying to | ||
# cache new stuff. | ||
key: delta-sbt-cache-spark3.2-scala${{ matrix.scala }} | ||
- name: Install Job dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git | ||
sudo apt install libedit-dev | ||
curl -LO https://github.com/bufbuild/buf/releases/download/v1.28.1/buf-Linux-x86_64.tar.gz | ||
mkdir -p ~/buf | ||
tar -xvzf buf-Linux-x86_64.tar.gz -C ~/buf --strip-components 1 | ||
rm buf-Linux-x86_64.tar.gz | ||
sudo apt install python3-pip --fix-missing | ||
sudo pip3 install pipenv==2021.5.29 | ||
curl https://pyenv.run | bash | ||
export PATH="~/.pyenv/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)" | ||
pyenv install 3.8.18 | ||
pyenv global system 3.8.18 | ||
pipenv --python 3.8 install | ||
if: steps.git-diff.outputs.diff | ||
- name: Run Scala/Java and Python tests | ||
# when changing TEST_PARALLELISM_COUNT make sure to also change it in spark_master_test.yaml | ||
run: | | ||
TEST_PARALLELISM_COUNT=4 pipenv run python run-tests.py --group iceberg | ||
if: steps.git-diff.outputs.diff |
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
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
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.