-
Notifications
You must be signed in to change notification settings - Fork 30
58 lines (47 loc) · 1.44 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
50
51
52
53
54
55
56
57
58
# Copyright 2024 Advanced Micro Devices, Inc.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: CI - Tuner
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/ci-tuner.yml'
- 'tuner/**'
push:
branches:
- main
paths:
- '.github/workflows/ci-tuner.yml'
- 'tuner/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10.12'
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -r tuner/requirements-dev.txt
- name: Install tuner dependencies
run: |
pip install -r tuner/requirements-tuner.txt
python -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade --pre \
iree-base-compiler iree-base-runtime
- name: Run tuner tests
run: pytest tuner/
- name: Run mypy type checker
run: mypy tuner/tuner