Skip to content

Commit bf87c13

Browse files
committed
ci
1 parent 5a4bbc9 commit bf87c13

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Build and Test H2O-3
2+
3+
on:
4+
push:
5+
branches:
6+
- devops/rohan/mig-h2o-3-nightly-pipeline-to-gha
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-h2o3:
11+
name: Build & Test H2O-3
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 60
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '11'
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '18'
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: '3.11'
34+
35+
- name: Install Python dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install grip tabulate requests wheel
39+
40+
- name: Install R
41+
uses: r-lib/actions/setup-r@v2
42+
43+
- name: Install R packages
44+
run: |
45+
Rscript -e 'install.packages(c("RCurl", "jsonlite", "statmod", "devtools", "roxygen2", "testthat"), repos="https://cloud.r-project.org")'
46+
47+
- name: Grant execute permissions to gradlew
48+
run: chmod +x gradlew
49+
50+
- name: Sync small data and R packages
51+
run: |
52+
./gradlew syncSmalldata
53+
./gradlew syncRPackages
54+
55+
- name: Build H2O-3 (without tests)
56+
run: ./gradlew build -x test
57+
58+
- name: Run H2O-3 tests
59+
run: ./gradlew test
60+
61+
# Optional: Start H2O for local-only testing
62+
# - name: Start H2O locally
63+
# run: java -jar build/h2o.jar &

0 commit comments

Comments
 (0)