Skip to content

Commit

Permalink
[Workflow] Uses different cases for different hardware, added classif…
Browse files Browse the repository at this point in the history
…ication model training test.
  • Loading branch information
hikettei authored May 25, 2024
1 parent 384d0c2 commit 42bcaaf
Showing 1 changed file with 70 additions and 4 deletions.
74 changes: 70 additions & 4 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
- develop

jobs:
test:
# TODO: Metal/CUDA Runtime
UnitTest-CPUTensor:
# TODO: Metal/CUDA Runtime
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -36,10 +38,74 @@ jobs:
- name: Check $PATH
run: echo $PATH

- name: Downloading OpenBLAS
- name: Installing OpenBLAS
run: |
sudo apt install libblas-dev
- name: Operating tests
- name: Unittest (CPU+Lisp)
run: |
ros config set dynamic-space-size 4gb
ros --eval '(progn (defparameter cl-user::*cl-waffe-config* `((:libblas "libblas.so"))))' ./roswell/cl-waffe2-test.ros
./roswell/waffe2.ros test -b CPUTensor -b LispTensor
UnitTest-LispTensor:
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
lisp: [sbcl-bin/2.3.9]
os: [ubuntu-latest]
target:
- normal

steps:
- uses: actions/checkout@v1
- name: Setting up environments
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH
- name: Unittest (Lisp+CPU)
run: |
ros config set dynamic-space-size 4gb
./roswell/waffe2.ros test -b LispTensor -b CPUTensor
Test-Classification-CPU:
- uses: actions/checkout@v1
- name: Setting up environments
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH

- name: Installing OpenBLAS
run: |
sudo apt install libblas-dev
- name: Set up Python
id: set_up_python_python_ci
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Downloading assets
run: |
pip install torch torchvision numpy
cd ./examples/mnist
python train_data.py
cd ../../
- name: Training (CPUTensor)
run: |
ros config set dynamic-space-size 4gb
./roswell/waffe2.ros demo --example mnist -b CPUTensor -b LispTensor

0 comments on commit 42bcaaf

Please sign in to comment.