5959 extra_rust_toolchains : ${{ env.EXTRA_RUST_TOOLCHAINS }}
6060 github_token : ${{ secrets.GITHUB_TOKEN }}
6161
62- - name : Setup Python venv
63- run : |
64- python3 -m venv ci
65- ci/bin/pip install -r scripts/requirements.txt
66-
6762 # Check Cargo.lock is up to date.
6863 - name : " Check Cargo.lock"
6964 run : |
@@ -77,13 +72,13 @@ jobs:
7772 # Run code style on PR.
7873 - name : " Run TODO style pull request"
7974 if : github.event_name == 'pull_request'
80- run : ci/bin/python scripts/named_todos.py --commit_id ${{ github.event.pull_request.base.sha }}
75+ run : scripts/named_todos.py --commit_id ${{ github.event.pull_request.base.sha }}
8176 - name : " Run clippy pull request"
8277 if : github.event_name == 'pull_request'
83- run : ci/bin/python scripts/run_tests.py --command clippy --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
78+ run : scripts/run_tests.py --command clippy --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
8479 - name : " Run cargo doc pull request"
8580 if : github.event_name == 'pull_request'
86- run : ci/bin/python scripts/run_tests.py --command doc --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
81+ run : scripts/run_tests.py --command doc --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
8782
8883 # Run code style on push.
8984 - name : " Run rustfmt"
@@ -93,10 +88,10 @@ jobs:
9388
9489 - name : " Run clippy on push"
9590 if : github.event_name == 'push'
96- run : ci/bin/python scripts/run_tests.py --command clippy
91+ run : scripts/run_tests.py --command clippy
9792 - name : " Run cargo doc on push"
9893 if : github.event_name == 'push'
99- run : ci/bin/python scripts/run_tests.py --command doc
94+ run : scripts/run_tests.py --command doc
10095
10196 - name : " Run taplo"
10297 run : scripts/taplo.sh
@@ -139,31 +134,25 @@ jobs:
139134 - name : " Run tests pull request"
140135 if : github.event_name == 'pull_request'
141136 run : |
142- python3 -m venv ci
143- ci/bin/pip install -r scripts/requirements.txt
144- ci/bin/python scripts/run_tests.py --command test --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
137+ scripts/run_tests.py --command test --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
145138 env :
146139 SEED : 0
147140
148141 - name : " Run integration tests pull request"
149142 if : github.event_name == 'pull_request'
150143 # TODO(Tsabary): Find a better way to set the ephemeral port range.
151144 run : |
152- python3 -m venv ci
153- ci/bin/pip install -r scripts/requirements.txt
154145 echo "net.ipv4.ip_local_port_range = 40000 40200" | sudo tee /etc/sysctl.conf
155146 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 }}
147+ scripts/run_tests.py --command integration --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
157148 env :
158149 SEED : 0
159150
160151 - name : " Run tests on push"
161152 if : github.event_name == 'push'
162153 # TODO(AdiY/Dori): Better support for running tests on push.
163154 run : |
164- python3 -m venv ci
165- ci/bin/pip install -r scripts/requirements.txt
166- ci/bin/python scripts/run_tests.py --command test
155+ scripts/run_tests.py --command test
167156 env :
168157 SEED : 0
169158
0 commit comments