Skip to content

Commit

Permalink
Fix CI for R tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontinuation committed Mar 21, 2024
1 parent 1d29bdb commit f903332
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
JAI_CORE_VERSION: "1.1.3"
JAI_CODEC_VERSION: "1.1.3"
JAI_IMAGEIO_VERSION: "1.1"

jobs:
build:
Expand Down Expand Up @@ -119,8 +122,16 @@ jobs:
esac
fi
export SPARKLYR_LOG_FILE='/tmp/sparklyr.log'
echo "Downloading JAI jars"
wget -q https://repo.osgeo.org/repository/release/javax/media/jai_core/${JAI_CORE_VERSION}/jai_core-${JAI_CORE_VERSION}.jar
wget -q https://repo.osgeo.org/repository/release/javax/media/jai_codec/${JAI_CODEC_VERSION}/jai_codec-${JAI_CODEC_VERSION}.jar
wget -q https://repo.osgeo.org/repository/release/javax/media/jai_imageio/${JAI_IMAGEIO_VERSION}/jai_imageio-${JAI_IMAGEIO_VERSION}.jar
source ./.github/workflows/scripts/prepare_sparklyr_sedona_test_env.sh
export SEDONA_JAR_FILES="${SEDONA_JAR_FILES}:$(pwd)/jai_core-${JAI_CORE_VERSION}.jar:$(pwd)/jai_codec-${JAI_CODEC_VERSION}.jar:$(pwd)/jai_imageio-${JAI_IMAGEIO_VERSION}.jar"
echo "Apache Sedona jar files: ${SEDONA_JAR_FILES}"
cd ./R/tests
NOT_CRAN='true' Rscript testthat.R
shell: bash
Expand Down

0 comments on commit f903332

Please sign in to comment.