-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (39 loc) · 1.16 KB
/
ci-tuner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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