-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (47 loc) · 1.42 KB
/
before_merge.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
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
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
- name: Run Tools Tests
env:
pytest_verbosity: 2
pytest_report_title: "⭐️ Tools Tests"
run: |
source venv/bin/activate
python3 -m pytest --github-report tests/tools/ -s
- name: Run Lowering Tests
env:
pytest_verbosity: 2
pytest_report_title: "⭐️ Aten → TTNN Lowering Tests"
run: |
source venv/bin/activate
python3 -m pytest --github-report tests/lowering/ -s
- name: Run Model Tests
env:
pytest_verbosity: 2
pytest_report_title: "⭐️ Model Tests"
run: |
source venv/bin/activate
python3 -m pytest --github-report tests/models/ -s