-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (49 loc) · 1.63 KB
/
test-mlir-aie-wheels.yml
File metadata and controls
59 lines (49 loc) · 1.63 KB
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
59
# SPDX-FileCopyrightText: Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Test mlir-aie wheels
on:
workflow_dispatch:
inputs:
wheels-version:
description: 'mlir-aie version to test (e.g., 0.0.1.2025071717+c5b3be6). Use "latest" to install the newest version available.'
required: true
default: 'latest'
jobs:
test:
runs-on: [self-hosted, docker]
steps:
- name: Checkout repository
uses: actions/checkout@v4
env:
HOME: /workspace
- name: Prerequisites
uses: ./.github/actions/prereqs
with:
env_name: ci_env
- name: Install wheels
shell: bash
env:
HOME: /workspace
run: |
set -euxo pipefail
source ci_env/bin/activate
pip uninstall -y mlir_aie
WHEELS_URL="https://github.com/Xilinx/mlir-aie/releases/expanded_assets/latest-wheels-2"
if [[ "${{ github.event.inputs.wheels-version }}" == "latest" ]]; then
pip install --upgrade mlir-aie --find-links ${WHEELS_URL}
else
pip install --upgrade mlir-aie==${{ github.event.inputs.wheels-version }} --find-links ${WHEELS_URL}
fi
- name: Build
uses: ./.github/actions/build
with:
env_name: ci_env
- name: Test
id: test
continue-on-error: true
uses: ./.github/actions/test
with:
env_name: ci_env
- name: Mark workflow as failed if tests failed
if: steps.test.outcome == 'failure'
run: exit 1