@@ -145,25 +145,48 @@ jobs:
145145 env :
146146 SEED : 0
147147
148- - name : " Run integration tests pull request "
149- if : github.event_name == 'pull_request '
150- # TODO(Tsabary ): Find a better way to set the ephemeral port range .
148+ - name : " Run tests on push "
149+ if : github.event_name == 'push '
150+ # TODO(AdiY/Dori ): Better support for running tests on push .
151151 run : |
152152 python3 -m venv ci
153153 ci/bin/pip install -r scripts/requirements.txt
154- echo "net.ipv4.ip_local_port_range = 40000 40200" | sudo tee /etc/sysctl.conf
155- sudo sysctl -p
156- ci/bin/python scripts/run_tests.py --command integration --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
154+ ci/bin/python scripts/run_tests.py --command test
157155 env :
158156 SEED : 0
159157
160- - name : " Run tests on push"
161- if : github.event_name == 'push'
162- # TODO(AdiY/Dori): Better support for running tests on push.
158+ run-integration-tests :
159+ runs-on : starkware-ubuntu-24.04-large
160+ steps :
161+ - uses : actions/checkout@v4
162+ with :
163+ # Fetch the entire history.
164+ fetch-depth : 0
165+ - uses : ./.github/actions/bootstrap
166+ with :
167+ github_token : ${{ secrets.GITHUB_TOKEN }}
168+
169+ # Setup pypy and link to the location expected by .cargo/config.toml.
170+ - uses : actions/setup-python@v5
171+ id : setup-pypy
172+ with :
173+ python-version : " pypy3.9"
174+ - run : ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
175+ - env :
176+ LD_LIBRARY_PATH : ${{ env.Python3_ROOT_DIR }}/bin
177+ run : echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
178+ # TODO(Gilad): only one test needs this (base_layer_test.rs), once it migrates to
179+ # anvil, remove.
180+ - run : npm install -g ganache@7.4.3
181+
182+ - name : " Run integration tests pull request"
183+ if : github.event_name == 'pull_request'
184+ # TODO(Tsabary): Find a better way to set the ephemeral port range.
163185 run : |
164186 python3 -m venv ci
165187 ci/bin/pip install -r scripts/requirements.txt
166- ci/bin/python scripts/run_tests.py --command test
188+ echo "net.ipv4.ip_local_port_range = 40000 40200" | sudo tee /etc/sysctl.conf
189+ sudo sysctl -p
190+ ci/bin/python scripts/run_tests.py --command integration --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
167191 env :
168192 SEED : 0
169-
0 commit comments