Add CI for testing of various models. (#28)

Added pytest CI for testing for Pytorch Inference and vision models.
This commit is contained in:
Prashant Kumar
2022-04-27 19:22:49 +05:30
committed by GitHub
parent c708032fb2
commit bd212634c1
5 changed files with 156 additions and 1 deletions

33
.github/workflows/test-models.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Validate torch-models on Shark Runtime
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Validate Models
run: |
cd $GITHUB_WORKSPACE
./setup_venv.sh
source shark.venv/bin/activate
pytest