mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
Add perf-linux bot
add perf-linux
This commit is contained in:
31
.github/workflows/test-models.yml
vendored
31
.github/workflows/test-models.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user