Skip to content

Commit

Permalink
Create separate ci tuner test
Browse files Browse the repository at this point in the history
  • Loading branch information
RattataKing committed Aug 23, 2024
1 parent 16d1087 commit 2bedfdc
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/ci-tuner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI - Tuner

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pre-commit-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.12'

- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -r sharktank/sharktank/tools/tuner/requirements-dev.txt
- name: Run pre-commit test
run: pre-commit run --all-files --show-diff-on-failure --color=always

- name: Install tuner dependencies
run: |
pip install -r sharktank/sharktank/tools/tuner/requirements-tuner.txt
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler iree-runtime
- name: Run pytest
working-directory: tuning
run: |
python -m pytest
2 changes: 2 additions & 0 deletions sharktank/sharktank/tools/tuner/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pre-commit==3.8.0
virtualenv==20.13.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest==8.2.2
tqdm==4.66.4
types-tqdm==4.66.0.20240417
z3_solver==4.13.0.0
types-tqdm==4.66.0.20240417

0 comments on commit 2bedfdc

Please sign in to comment.