Add perf-linux bot

add perf-linux
This commit is contained in:
powderluv
2022-06-04 14:27:08 -07:00
committed by GitHub
parent f3bc775d18
commit 274d2ca9c2

View File

@@ -45,8 +45,8 @@ jobs:
source shark.venv/bin/activate
pytest --workers auto -k 'not benchmark'
build-macOS:
runs-on: self-hosted
perf-macOS:
runs-on: MacStudio
strategy:
fail-fast: false
matrix:
@@ -73,4 +73,31 @@ jobs:
run: |
source shark.venv/bin/activate
pytest -k 'not benchmark'
perf-linux:
runs-on: a100
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: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/nightly/cpu -f https://github.com/llvm/torch-mlir/releases -f https://github.com/nod-ai/SHARK-Runtime/releases; fi
- name: Validate Models
run: |
cd $GITHUB_WORKSPACE
./setup_venv.sh
source shark.venv/bin/activate
pytest --workers auto