Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Disable CI. (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis23 authored Feb 8, 2023
1 parent 7c1b597 commit f84123d
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 69 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

name: Test iree-torch examples

on:
schedule:
- cron: '0 23 * * *'

jobs:
build:
name: Build and Test
runs-on: ubuntu-20.04
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt update
sudo apt install cmake clang ninja-build
- name: Install IREE compiler
run: |
python -m pip install iree-compiler
pip install -f https://iree-org.github.io/iree/pip-release-links.html iree-compiler
pip install -f https://llvm.github.io/torch-mlir/package-index/ torch-mlir
pip install git+https://github.com/iree-org/iree-torch.git
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize submodules
run : |
git submodule update --init --recursive
- name: Build example
run: |
cd $GITHUB_WORKSPACE/examples/native_training
cmake -B build/ -DCMAKE_BUILD_TYPE=MinSizeRel -GNinja .
cmake --build build/ --target native_training
- name: Compile example
run: |
cd $GITHUB_WORKSPACE/examples/native_training
python native_training.py /tmp/native_training.vmfb
- name: Test execution
run: |
cd $GITHUB_WORKSPACE/examples/native_training
./build/native_training /tmp/native_training.vmfb
#name: Test iree-torch examples
#
#on:
# schedule:
# - cron: '0 23 * * *'
#
#jobs:
# build:
# name: Build and Test
# runs-on: ubuntu-20.04
# steps:
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'
# - name: Install dependencies
# run: |
# sudo apt update
# sudo apt install cmake clang ninja-build
# - name: Install IREE compiler
# run: |
# python -m pip install iree-compiler
# pip install -f https://iree-org.github.io/iree/pip-release-links.html iree-compiler
# pip install -f https://llvm.github.io/torch-mlir/package-index/ torch-mlir
# pip install git+https://github.com/iree-org/iree-torch.git
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Initialize submodules
# run : |
# git submodule update --init --recursive
# - name: Build example
# run: |
# cd $GITHUB_WORKSPACE/examples/native_training
# cmake -B build/ -DCMAKE_BUILD_TYPE=MinSizeRel -GNinja .
# cmake --build build/ --target native_training
# - name: Compile example
# run: |
# cd $GITHUB_WORKSPACE/examples/native_training
# python native_training.py /tmp/native_training.vmfb
# - name: Test execution
# run: |
# cd $GITHUB_WORKSPACE/examples/native_training
# ./build/native_training /tmp/native_training.vmfb
52 changes: 26 additions & 26 deletions .github/workflows/test_nightly_packages.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Check Torch-MLIR E2E tests with nightly packages.
name: Test Nightly Packages

on:
schedule:
- cron: '0 10,22 * * *'
workflow_dispatch:

jobs:
run_e2e_tests:
name: Run Torch-MLIR E2E Tests
runs-on: ubuntu-20.04
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Get iree-torch
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install Nightly packages
run: |
python -m pip install -r $GITHUB_WORKSPACE/requirements.txt
- name: Run Torch-MLIR E2E Tests
run: |
$GITHUB_WORKSPACE/tools/e2e_test.sh -v -s
#name: Test Nightly Packages
#
#on:
# schedule:
# - cron: '0 10,22 * * *'
# workflow_dispatch:
#
#jobs:
# run_e2e_tests:
# name: Run Torch-MLIR E2E Tests
# runs-on: ubuntu-20.04
# steps:
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'
# - name: Get iree-torch
# uses: actions/checkout@v2
# with:
# submodules: 'true'
# - name: Install Nightly packages
# run: |
# python -m pip install -r $GITHUB_WORKSPACE/requirements.txt
# - name: Run Torch-MLIR E2E Tests
# run: |
# $GITHUB_WORKSPACE/tools/e2e_test.sh -v -s

0 comments on commit f84123d

Please sign in to comment.