-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (34 loc) · 942 Bytes
/
pytest.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
name: Pytest Checks
on:
pull_request:
paths:
- "tuning/*"
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- 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 requirements-dev.txt
- name: Set virtual env
run: |
python -m venv .venv
source .venv/bin/activate
- name: Install tuner dependencies
run: |
pip install -r tuning/tuner_requirements/requirements.txt
python -m pip install iree-compiler
- name: Run pytest
working-directory: tuning
run: |
python -m pytest test_autotune.py
python -m pytest test_tune.py