Skip to content

Commit d6228a8

Browse files
feat: add frontend tests to CI (#28881)
1 parent 2e026a6 commit d6228a8

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# TODO: run these tests on commit/PR when we have them passing
2+
name: frontend-tests
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 0"
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
torch:
11+
strategy:
12+
matrix:
13+
backend: [ "jax" ]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
path: ivy
19+
persist-credentials: false
20+
21+
- uses: actions/setup-python@v3
22+
with:
23+
python-version: 3.12
24+
25+
- name: Install Dependencies
26+
run: |
27+
cd ivy
28+
python3 -m pip install -U -r requirements/requirements.txt
29+
python3 -m pip install -U -r requirements/optional.txt
30+
31+
- name: Run Transformations Tests
32+
id: tests
33+
run: |
34+
cd ivy
35+
python3 -m pytest ivy_tests/test_ivy/test_frontends/test_torch -p no:warnings --tb=no --backend ${{ matrix.backend }} --num-examples 4 --deadline 1000

ivy_tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def pytest_configure(config):
150150
"ivy_profile",
151151
**profile_settings,
152152
suppress_health_check=(HealthCheck(3), HealthCheck(2), HealthCheck(1)),
153-
phases=[Phase.explicit, Phase.reuse, Phase.generate, Phase.target],
153+
phases=[Phase.explicit, Phase.reuse, Phase.generate],
154154
print_blob=True,
155155
)
156156

0 commit comments

Comments
 (0)