@@ -184,28 +184,28 @@ jobs:
184184 - name : Run autotest_bot.py
185185 # Run bot and list resulting files (replay file, stable_id.json)
186186 run : |
187- docker run -i -d --name my_container $IMAGE_NAME
187+ docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
188188 docker exec -i my_container bash -c "python test/travis_test_script.py test/autotest_bot.py"
189189 docker exec -i my_container bash -c "tree"
190190 docker rm -f my_container
191191
192192 - name : Run upgradestest_bot.py
193193 run : |
194- docker run -i -d --name my_container $IMAGE_NAME
194+ docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
195195 docker exec -i my_container bash -c "python test/travis_test_script.py test/upgradestest_bot.py"
196196 docker exec -i my_container bash -c "tree"
197197 docker rm -f my_container
198198
199199 - name : Run damagetest_bot.py
200200 run : |
201- docker run -i -d --name my_container $IMAGE_NAME
201+ docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
202202 docker exec -i my_container bash -c "python test/travis_test_script.py test/damagetest_bot.py"
203203 docker exec -i my_container bash -c "tree"
204204 docker rm -f my_container
205205
206206 - name : Run queries_test_bot.py
207207 run : |
208- docker run -i -d --name my_container $IMAGE_NAME
208+ docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
209209 docker exec -i my_container bash -c "python test/travis_test_script.py test/queries_test_bot.py"
210210 docker exec -i my_container bash -c "tree"
211211 docker rm -f my_container
@@ -234,7 +234,7 @@ jobs:
234234
235235 - name : Run example bots vs computer
236236 run : |
237- docker run -i -d --name my_container $IMAGE_NAME
237+ docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
238238 docker exec -i my_container bash -c "python test/run_example_bots_vs_computer.py"
239239 docker exec -i my_container bash -c "tree"
240240 docker rm -f my_container
@@ -266,7 +266,7 @@ jobs:
266266 #
267267 # - name: Run example bots vs each other
268268 # run: |
269- # docker run -i -d --name my_container $IMAGE_NAME
269+ # docker run -i -d --name my_container --env 'PYTHONPATH=/root/python-sc2' $IMAGE_NAME
270270 # docker exec -i my_container bash -c "python test/run_example_bots_vs_each_other.py"
271271 # docker exec -i my_container bash -c "tree"
272272 # docker rm -f my_container
@@ -294,11 +294,14 @@ jobs:
294294 run : |
295295 mkdir htmlcov
296296 docker run -i -d \
297- --mount type=bind,source= $(pwd)/htmlcov,destination= /root/python-sc2/htmlcov \
297+ -v $(pwd)/htmlcov: /root/python-sc2/htmlcov \
298298 --name my_container \
299+ --env 'PYTHONPATH=/root/python-sc2/' \
300+ --entrypoint /bin/bash \
299301 $IMAGE_NAME
300302 echo "Install dev requirements because only non dev requirements exist in the docker image at the moment"
301- docker exec -i my_container bash -c "uv sync --frozen --no-cache --no-install-project"
303+ docker exec -i my_container bash -c "pip install uv \
304+ && uv sync --frozen --no-cache --no-install-project"
302305
303306 - name : Run coverage on tests
304307 run : docker exec -i my_container bash -c "uv run pytest --cov=./"
0 commit comments