#3003: updated ttnn tests #4171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[post-commit] all - Slow Dispatch post-commit main build and unit tests" | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
workflow_call: | |
jobs: | |
build-and-unit-tests: | |
strategy: | |
# Do not fail-fast because we need to ensure all tests go to completion | |
# so we try not to get hanging machines | |
fail-fast: false | |
matrix: | |
runner-info: [ | |
{arch: grayskull, runs-on: ["grayskull"]}, | |
# N150 | |
{arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-1", "multi-chip-num-chips-1"]}, | |
# N300 | |
{arch: wormhole_b0, runs-on: ["wormhole_b0", "multi-chip-num-pcie-1", "multi-chip-num-chips-2"]}, | |
] | |
env: | |
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | |
ARCH_NAME: ${{ matrix.runner-info.arch }} | |
TT_METAL_SLOW_DISPATCH_MODE: 1 | |
environment: dev | |
runs-on: ${{ matrix.runner-info.runs-on }} | |
steps: | |
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@main | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- name: Set up dyanmic env vars for build | |
run: | | |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | |
- name: Build tt-metal and libs | |
run: make build | |
- name: Build tt-metal CPP tests | |
run: make tests | |
- name: Run pre/post regression tests | |
timeout-minutes: 90 | |
run: | | |
source build/python_env/bin/activate | |
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit --dispatch-mode slow |