Skip to content

Canary-Windows

Canary-Windows #1247

name: Canary-Windows
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
inputs:
repo-id:
description: 'staging repository id to test'
required: false
default: ''
djl-version:
description: 'djl version to test'
required: false
pt-version:
description: 'pytorch version to test'
required: false
default: ''
jobs:
canary-test-windows:
if: github.repository == 'deepjavalibrary/djl-demo'
runs-on: windows-latest
env:
AWS_REGION: us-east-1
DJL_STAGING: ${{github.event.inputs.repo-id}}
DJL_VERSION: ${{github.event.inputs.djl-version}}
PT_VERSION: ${{github.event.inputs.pt-version}}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11
- name: Test MXNet
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=mxnet-native-auto ./gradlew clean run
rm -rf ~/.djl.ai
- name: Test PyTorch
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=$PT_VERSION ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.11.0 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.12.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.13.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=2.0.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.11.0 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.12.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.13.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=2.0.1 ./gradlew clean run
rm -rf ~/.djl.ai
- name: Test TensorFlow
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=tensorflow-native-auto ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=tensorflow-native-cpu ./gradlew clean run
rm -rf ~/.djl.ai
- name: Test OnnxRuntime
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=onnxruntime ./gradlew clean run
- name: Test PaddlePaddle
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=paddlepaddle-native-auto ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=paddlepaddle-native-cpu ./gradlew clean run
rm -rf ~/.djl.ai
# TFLite doesn't support Windows
# Xgboost doesn't support Windows
# LightGBM doesn't support Windows
# Huggingface tokenizers doesn't support Windows
# SentencePiece tokenizers doesn't support Windows
# fastText doesn't support Windows