6262 - name : Setup Python venv
6363 run : |
6464 python3 -m venv ci
65- ci/bin/pip install -r scripts/requirements.txt
65+ . ci/bin/activate
66+ pip install -r scripts/requirements.txt
6667
6768 # Check Cargo.lock is up to date.
6869 - name : " Check Cargo.lock"
@@ -77,13 +78,13 @@ jobs:
7778 # Run code style on PR.
7879 - name : " Run TODO style pull request"
7980 if : github.event_name == 'pull_request'
80- run : ci/bin/python scripts/named_todos.py --commit_id ${{ github.event.pull_request.base.sha }}
81+ run : scripts/named_todos.py --commit_id ${{ github.event.pull_request.base.sha }}
8182 - name : " Run clippy pull request"
8283 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 }}
84+ run : scripts/run_tests.py --command clippy --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
8485 - name : " Run cargo doc pull request"
8586 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 }}
87+ run : scripts/run_tests.py --command doc --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
8788
8889 # Run code style on push.
8990 - name : " Run rustfmt"
@@ -93,10 +94,10 @@ jobs:
9394
9495 - name : " Run clippy on push"
9596 if : github.event_name == 'push'
96- run : ci/bin/python scripts/run_tests.py --command clippy
97+ run : scripts/run_tests.py --command clippy
9798 - name : " Run cargo doc on push"
9899 if : github.event_name == 'push'
99- run : ci/bin/python scripts/run_tests.py --command doc
100+ run : scripts/run_tests.py --command doc
100101
101102 - name : " Run taplo"
102103 run : scripts/taplo.sh
@@ -140,8 +141,9 @@ jobs:
140141 if : github.event_name == 'pull_request'
141142 run : |
142143 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 }}
144+ . ci/bin/activate
145+ pip install -r scripts/requirements.txt
146+ scripts/run_tests.py --command test --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
145147 env :
146148 SEED : 0
147149
@@ -150,10 +152,11 @@ jobs:
150152 # TODO(Tsabary): Find a better way to set the ephemeral port range.
151153 run : |
152154 python3 -m venv ci
153- ci/bin/pip install -r scripts/requirements.txt
155+ . ci/bin/activate
156+ pip install -r scripts/requirements.txt
154157 echo "net.ipv4.ip_local_port_range = 40000 40200" | sudo tee /etc/sysctl.conf
155158 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 }}
159+ scripts/run_tests.py --command integration --changes_only --include_dependencies --commit_id ${{ github.event.pull_request.base.sha }}
157160 env :
158161 SEED : 0
159162
@@ -162,8 +165,9 @@ jobs:
162165 # TODO(AdiY/Dori): Better support for running tests on push.
163166 run : |
164167 python3 -m venv ci
165- ci/bin/pip install -r scripts/requirements.txt
166- ci/bin/python scripts/run_tests.py --command test
168+ . ci/bin/activate
169+ pip install -r scripts/requirements.txt
170+ scripts/run_tests.py --command test
167171 env :
168172 SEED : 0
169173
0 commit comments