[CI] Improve JVM test in GitHub Actions (#5930)
* [CI] Improve JVM test in GitHub Actions * Use env var for Wagon options [skip ci] * Move the retry flag to pom.xml [skip ci] * Export env var RABIT_MOCK to run Spark tests [skip ci] * Correct location of env var * Re-try up to 5 times [skip ci] * Don't run distributed training test on Windows * Fix typo * Update main.yml
This commit is contained in:
parent
81d8dd79ca
commit
9c14e430af
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -35,10 +35,19 @@ jobs:
|
|||||||
key: ${{ runner.os }}-m2-${{ hashFiles('./jvm-packages/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('./jvm-packages/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-m2
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
|
||||||
- name: Test JVM packages
|
- name: Test XGBoost4J
|
||||||
run: |
|
run: |
|
||||||
cd jvm-packages
|
cd jvm-packages
|
||||||
mvn test -pl :xgboost4j_2.12
|
mvn test -B -pl :xgboost4j_2.12
|
||||||
|
|
||||||
|
- name: Test XGBoost4J-Spark
|
||||||
|
run: |
|
||||||
|
rm -rfv build/
|
||||||
|
cd jvm-packages
|
||||||
|
mvn -B test
|
||||||
|
if: matrix.os == 'ubuntu-latest' # Distributed training doesn't work on Windows
|
||||||
|
env:
|
||||||
|
RABIT_MOCK: ON
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@ -38,6 +38,7 @@
|
|||||||
<scala.version>2.12.8</scala.version>
|
<scala.version>2.12.8</scala.version>
|
||||||
<scala.binary.version>2.12</scala.binary.version>
|
<scala.binary.version>2.12</scala.binary.version>
|
||||||
<hadoop.version>2.7.3</hadoop.version>
|
<hadoop.version>2.7.3</hadoop.version>
|
||||||
|
<maven.wagon.http.retryHandler.count>5</maven.wagon.http.retryHandler.count>
|
||||||
<log.capi.invocation>OFF</log.capi.invocation>
|
<log.capi.invocation>OFF</log.capi.invocation>
|
||||||
<use.cuda>OFF</use.cuda>
|
<use.cuda>OFF</use.cuda>
|
||||||
</properties>
|
</properties>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user