Skip to content

Commit f4cfa42

Browse files
fix: run transpiler tests in ci without docker (#28875)
1 parent 869ed05 commit f4cfa42

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/test-transpiler.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@ jobs:
2222
- uses: actions/setup-python@v3
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
- name: Install Dependencies
26+
run: |
27+
cd ivy
28+
python3 -m pip install -r requirements/requirements.txt
29+
python3 -m pip install -r requirements/optional.txt
2530
- name: Run Transformations Tests
2631
id: tests
2732
run: |
2833
cd ivy
29-
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh transformations
34+
scripts/shell/run_transpiler_tests.sh transformations
3035
3136
translations:
3237
strategy:
@@ -41,11 +46,16 @@ jobs:
4146
- uses: actions/setup-python@v3
4247
with:
4348
python-version: ${{ matrix.python-version }}
49+
- name: Install Dependencies
50+
run: |
51+
cd ivy
52+
python3 -m pip install -r requirements/requirements.txt
53+
python3 -m pip install -r requirements/optional.txt
4454
- name: Run Translations Tests
4555
id: tests
4656
run: |
4757
cd ivy
48-
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh translations
58+
scripts/shell/run_transpiler_tests.sh translations
4959
5060
module:
5161
strategy:
@@ -60,11 +70,16 @@ jobs:
6070
- uses: actions/setup-python@v3
6171
with:
6272
python-version: ${{ matrix.python-version }}
73+
- name: Install Dependencies
74+
run: |
75+
cd ivy
76+
python3 -m pip install -r requirements/requirements.txt
77+
python3 -m pip install -r requirements/optional.txt
6378
- name: Run Module Tests
6479
id: tests
6580
run: |
6681
cd ivy
67-
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh module
82+
scripts/shell/run_transpiler_tests.sh module
6883
6984
sourcegen:
7085
strategy:
@@ -79,11 +94,16 @@ jobs:
7994
- uses: actions/setup-python@v3
8095
with:
8196
python-version: ${{ matrix.python-version }}
97+
- name: Install Dependencies
98+
run: |
99+
cd ivy
100+
python3 -m pip install -r requirements/requirements.txt
101+
python3 -m pip install -r requirements/optional.txt
82102
- name: Run SourceGen Tests
83103
id: tests
84104
run: |
85105
cd ivy
86-
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh sourcegen
106+
scripts/shell/run_transpiler_tests.sh sourcegen
87107
88108
kornia:
89109
strategy:
@@ -98,8 +118,13 @@ jobs:
98118
- uses: actions/setup-python@v3
99119
with:
100120
python-version: ${{ matrix.python-version }}
121+
- name: Install Dependencies
122+
run: |
123+
cd ivy
124+
python3 -m pip install -r requirements/requirements.txt
125+
python3 -m pip install -r requirements/optional.txt
101126
- name: Run Kornia Tests
102127
id: tests
103128
run: |
104129
cd ivy
105-
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh kornia
130+
scripts/shell/run_transpiler_tests.sh kornia

0 commit comments

Comments
 (0)