-
Notifications
You must be signed in to change notification settings - Fork 622
36 lines (33 loc) · 1.11 KB
/
pr_pytorch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: pytorch engine integration tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-18.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Workaround for startup run
run: ./gradlew jar clean
- name: Compile JNI
run: ./gradlew :pytorch:pytorch-native:compileJNI
- name: Test with Gradle
run: ./gradlew :integration:test "-Dai.djl.default_engine=PyTorch"
- name: Integration test results
uses: actions/upload-artifact@v1
if: always()
with:
name: integration
path: integration/build/reports