@@ -215,7 +215,7 @@ jobs:
215215 # Build docker image from Dockerfile using specific python and sc2 version
216216 env :
217217 BUILD_ARGS : --build-arg PYTHON_VERSION=${{ matrix.python-version }} --build-arg SC2_VERSION=${{ matrix.sc2-version }}
218- run : docker build -f test/Dockerfile -t $IMAGE_NAME $BUILD_ARGS .
218+ run : docker build -f test/Dockerfile -t $IMAGE_NAME $BUILD_ARGS --build-arg VERSION_NUMBER=${{ env.VERSION_NUMBER }} .
219219
220220 - name : Run autotest_bot.py
221221 # Run bot and list resulting files (replay file, stable_id.json)
@@ -279,15 +279,11 @@ jobs:
279279# run_bot_vs_bot:
280280# # Run bot vs bot
281281# name: Run example bots against each other
282- # runs-on: ${{ matrix.os }}
283- # timeout-minutes: 30
284- # strategy:
285- # # Do not allow this test to cancel. Finish all jobs regardless of error
286- # fail-fast: false
287- # matrix:
288- # os: [ubuntu-latest]
289- # python-version: ['3.10']
290- # sc2-version: ['4.10']
282+ # needs: [run_pytest_tests]
283+ # timeout-minutes: 60
284+ # env:
285+ # IMAGE_NAME: burnysc2/python-sc2-docker:local
286+ #
291287# steps:
292288# # Copy data from repository
293289# - uses: actions/checkout@v3
@@ -298,13 +294,15 @@ jobs:
298294# tree
299295#
300296# - name: Load and build docker image
301- # # Build docker image from Dockerfile using python 3.8
297+ # # Build docker image from Dockerfile using specific python and sc2 version
298+ # env:
299+ # BUILD_ARGS: --build-arg PYTHON_VERSION=${{ env.LATEST_PYTHON_VERSION }} --build-arg SC2_VERSION=${{ env.LATEST_SC2_VERSION }}
302300# run: |
303- # docker build -t test_image - f test/Dockerfile --build-arg PYTHON_VERSION=${{ matrix.python-version }} --build-arg SC2_VERSION =${{ matrix.sc2-version }} --build-arg VERSION_NUMBER=$VERSION_NUMBER .
301+ # docker build -f test/Dockerfile -t $IMAGE_NAME $BUILD_ARGS --build-arg VERSION_NUMBER =${{ env.VERSION_NUMBER }} .
304302#
305303# - name: Run example bots vs each other
306304# run: |
307- # docker run -it -d --name my_container test_image
305+ # docker run -i -d --name my_container $IMAGE_NAME
308306# docker exec -i my_container bash -c "python test/run_example_bots_vs_each_other.py"
309307# docker exec -i my_container bash -c "tree"
310308# docker rm -f my_container
0 commit comments