-
Notifications
You must be signed in to change notification settings - Fork 74
98 lines (96 loc) · 3.22 KB
/
eager-package-main.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
name: "[post-commit] eager - Package on main"
on:
workflow_dispatch:
workflow_call:
push:
branches: ["main"]
# TODO: RK - need to change this to every push later once
# we go public
jobs:
build-eager-package:
strategy:
matrix:
os: [ubuntu-20.04]
arch: [grayskull, wormhole_b0]
uses: ./.github/workflows/eager-package.yaml
with:
environment: dev
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
secrets:
CHECKOUT_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
test-eager-package-host:
needs: build-eager-package
strategy:
matrix:
os: [ubuntu-20.04]
arch: [grayskull, wormhole_b0]
runs-on: ${{ matrix.os }}
environment: production
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CHECKOUT_TOKEN }}
lfs: false
- uses: ./.github/actions/install-metal-deps
with:
os: ${{ matrix.os }}
- uses: actions/download-artifact@v3
with:
name: eager-dist-${{ matrix.os }}-${{ matrix.arch }}
- name: Set up end-to-end tests environment
run: ./tests/scripts/set_up_end_to_end_tests_env.sh
- name: Set up dynamic env vars
run: |
source tests/end_to_end_tests/env/bin/activate
echo "TT_METAL_HOME=$(python -m tt_lib.scripts.get_home_dir --short)" >> $GITHUB_ENV
- name: Activate env and run release tests - host
shell: bash
run: |
export PYTHONPATH=$(pwd)
source tests/end_to_end_tests/env/bin/activate
./tests/scripts/run_tests.sh --tt-arch ${{ matrix.arch }} --pipeline-type eager_host_side
test-eager-package-silicon:
needs: build-eager-package
strategy:
matrix:
os: [ubuntu-20.04]
runner-hw-info: [
{arch: grayskull},
{arch: wormhole_b0},
]
runs-on: ["Linux", "${{ matrix.runner-hw-info.arch }}"]
environment: production
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.runner-hw-info.arch }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CHECKOUT_TOKEN }}
lfs: false
- uses: actions/download-artifact@v3
with:
name: eager-dist-${{ matrix.os }}-${{ matrix.runner-hw-info.arch }}
- name: Set up end-to-end tests environment
run: ./tests/scripts/set_up_end_to_end_tests_env.sh
- name: Set up dynamic env vars
run: |
source tests/end_to_end_tests/env/bin/activate
echo "TT_METAL_HOME=$(python -m tt_lib.scripts.get_home_dir --short)" >> $GITHUB_ENV
- name: Set up kernel builds
run: |
source tests/end_to_end_tests/env/bin/activate
python -m tt_lib.scripts.set_up_kernels --short prepare
- name: Activate env and run release tests - silicon
shell: bash
run: |
export PYTHONPATH=$(pwd)
source tests/end_to_end_tests/env/bin/activate
./tests/scripts/run_tests.sh --tt-arch ${{ matrix.runner-hw-info.arch }} --pipeline-type eager_package_silicon