Merge pull request #9210 from eclipse/ag_quick_tests

Add quick sanity check tests that run every push
master
Adam Gibson 2021-03-06 11:29:10 +09:00 committed by GitHub
commit ba90be3149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 110 additions and 2 deletions

View File

@ -28,7 +28,6 @@ jobs:
- name: Build on linux-x86_64 - name: Build on linux-x86_64
env: env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }} ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
OPENBLAS_PATH: "/opt/openblas/"
LIBND4J_HOME: "${GITHUB_WORKSPACE}/libnd4j" LIBND4J_HOME: "${GITHUB_WORKSPACE}/libnd4j"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }} MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }}

View File

@ -0,0 +1,52 @@
on:
push:
jobs:
linux-x86_64:
runs-on: ubuntu-18.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: ./.github/actions/install-protobuf-linux
- uses: ./.github/actions/download-dl4j-test-resources-linux
- name: Run tests on linux-x86_64
shell: bash
run: |
mvn --version
cmake --version
protoc --version
cd dl4j-test-resources-master && mvn clean install -DskipTests && cd ..
export OMP_NUM_THREADS=1
mvn -Pintegration-tests -Ptestresources -Dlibnd4j.buildthreads=1 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test
windows-x86_64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/msys2-base-setup
- uses: ./.github/actions/download-dl4j-test-resources-windows
- name: Run tests
shell: cmd
run: |
set "PATH=C:\msys64\usr\bin;%PATH%"
export OMP_NUM_THREADS=1
mvn -Pintegration-tests -Ptestresources -Dlibnd4j.buildthreads=1 -Dlibnd4j.build="Debug" -Djavacpp.platform=windows-x86_64 -libnd4j.platform=windows-x86_64 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test
mac-x86_64:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/download-dl4j-test-resources-linux
- name: Install and run tests
shell: bash
env:
VERBOSE: 1
run: |
brew install unzip ccache gcc swig autoconf-archive automake cmake libomp libtool libusb ant maven nasm xz pkg-config sdl gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr wget python
export OMP_NUM_THREADS=1
mvn -Pintegration-tests -Dlibnd4j.build="Debug" -Dlibnd4j.buildthreads=1 -Ptestresources -Djavacpp.platform=macosx-x86_64 -libnd4j.platform=macosx-x86_64 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test

View File

@ -0,0 +1,52 @@
on:
push:
jobs:
linux-x86_64:
runs-on: ubuntu-18.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: ./.github/actions/install-protobuf-linux
- uses: ./.github/actions/download-dl4j-test-resources-linux
- name: Run tests on linux-x86_64
shell: bash
run: |
mvn --version
cmake --version
protoc --version
cd dl4j-test-resources-master && mvn clean install -DskipTests && cd ..
export OMP_NUM_THREADS=1
mvn -Ptestresources -pl ":deeplearning4j-modelimport,:deeplearning4j-core,:nd4j-native,:samediff-import,:libnd4j" -Dlibnd4j.buildthreads=1 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test
windows-x86_64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/msys2-base-setup
- uses: ./.github/actions/download-dl4j-test-resources-windows
- name: Run tests
shell: cmd
run: |
set "PATH=C:\msys64\usr\bin;%PATH%"
export OMP_NUM_THREADS=1
mvn -pl ":deeplearning4j-modelimport,:deeplearning4j-core,:nd4j-native,:samediff-import,:libnd4j" -Ptestresources -Dlibnd4j.buildthreads=1 -Dlibnd4j.build="Debug" -Djavacpp.platform=windows-x86_64 -libnd4j.platform=windows-x86_64 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test
mac-x86_64:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/download-dl4j-test-resources-linux
- name: Install and run tests
shell: bash
env:
VERBOSE: 1
run: |
brew install unzip ccache gcc swig autoconf-archive automake cmake libomp libtool libusb ant maven nasm xz pkg-config sdl gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr wget python
export OMP_NUM_THREADS=1
mvn -pl ":deeplearning4j-modelimport,:deeplearning4j-core,:nd4j-native,:samediff-import,:libnd4j" -Dlibnd4j.build="Debug" -Dlibnd4j.buildthreads=1 -Ptestresources -Djavacpp.platform=macosx-x86_64 -libnd4j.platform=macosx-x86_64 -Ptest-nd4j-native -Dlibnd4j.chip=cpu clean test

View File

@ -56,7 +56,12 @@ if [ -n "$BUILD_PATH" ]; then
export PATH="$PATH:$BUILD_PATH" export PATH="$PATH:$BUILD_PATH"
fi fi
../blasbuild/${CHIP}/te NdArrayIpcTeststs_cpu/layers_tests/runtests unameOut="$(uname -s)"
if [[ "$unameOut" == *"MINGW"* ]]; then
../blasbuild/${CHIP}/tests_cpu/layers_tests/runtests.exe
else
../blasbuild/${CHIP}/tests_cpu/layers_tests/runtests
fi
# Workaround to fix posix path conversion problem on Windows (http://mingw.org/wiki/Posix_path_conversion) # Workaround to fix posix path conversion problem on Windows (http://mingw.org/wiki/Posix_path_conversion)
[ -f "${GTEST_OUTPUT#*:}" ] && cp -a surefire-reports/ ../target && rm -rf surefire-reports/ [ -f "${GTEST_OUTPUT#*:}" ] && cp -a surefire-reports/ ../target && rm -rf surefire-reports/