Skip to content

Tests

Tests #21

Workflow file for this run

name: "Tests"
on:
workflow_call:
workflow_dispatch:
merge_group:
permissions:
actions: read
contents: read
pages: write
id-token: write
jobs:
validate-pr:
env:
ARCH_NAME: wormhole_b0
TT_METAL_HOME: ${pwd}
PYTHONPATH: ${pwd}
runs-on: ["in-service", "n150"]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip config set global.extra-index-url https://download.pytorch.org/whl/cpu
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt
python3 -m pip install pytest-github-report
- id: dl_metal_libs
name: Download metal_libs
uses: robinraju/[email protected]
with:
repository: tenstorrent/tt-metal
latest: true
preRelease: true
fileName: metal_libs-*wormhole.b0*.whl
- name: Install metal_libs
run: |
source venv/bin/activate
python3 -m pip install ${{ fromJson(steps.dl_metal_libs.outputs.downloaded_files)[0] }}
- name: Run Tests
env:
pytest_verbosity: 2
pytest_report_title: "⭐️ Pytest Results ⭐️"
run: |
source venv/bin/activate
python3 -m pytest --github-report tests/*.py