Fix ci.yml env variables
@@ -111,6 +111,8 @@ jobs:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10']
sc2-version: ['4.10']
+ env:
+ IMAGE_NAME: burnysc2/python-sc2:local
steps:
# Copy data from repository
@@ -124,7 +126,6 @@ jobs:
- name: Load and build docker image
# Build docker image from Dockerfile using specific python and sc2 version
env:
- IMAGE_NAME: burnysc2/python-sc2:local
BUILD_ARGS: --build-arg PYTHON_VERSION=${{ matrix.python-version }} --build-arg SC2_VERSION=${{ matrix.sc2-version }}
run: |
docker build -f test/Dockerfile -t $IMAGE_NAME $BUILD_ARGS .
@@ -139,21 +140,21 @@ jobs:
- name: Run upgradestest_bot.py
run: |
- docker run -i -d --name my_container test_image
+ docker run -i -d --name my_container $IMAGE_NAME
docker exec -i my_container bash -c "python test/travis_test_script.py test/upgradestest_bot.py"
docker exec -i my_container bash -c "tree"
docker rm -f my_container
- name: Run damagetest_bot.py
run: |
- docker run -i -d --name my_container test_image
+ docker run -i -d --name my_container $IMAGE_NAME
docker exec -i my_container bash -c "python test/travis_test_script.py test/damagetest_bot.py"
docker exec -i my_container bash -c "tree"
docker rm -f my_container
- name: Run queries_test_bot.py
run: |
- docker run -i -d --name my_container test_image
+ docker run -i -d --name my_container $IMAGE_NAME
docker exec -i my_container bash -c "python test/travis_test_script.py test/queries_test_bot.py"
docker exec -i my_container bash -c "tree"
docker rm -f my_container
@@ -168,6 +169,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
+ env:
+ IMAGE_NAME: burnysc2/python-sc2-docker:local
steps:
# Copy data from repository
@@ -181,14 +184,13 @@ jobs:
- name: Load and build docker image
# Build docker image from Dockerfile using specific python and sc2 version
env:
- IMAGE_NAME: burnysc2/python-sc2-docker:local
BUILD_ARGS: --build-arg PYTHON_VERSION=${{ env.LATEST_PYTHON_VERSION }} --build-arg SC2_VERSION=${{ env.LATEST_SC2_VERSION }}
run: |
docker build -f test/Dockerfile -t $IMAGE_NAME $BUILD_ARGS --build-arg VERSION_NUMBER=${{ env.VERSION_NUMBER }} .
- name: Run example bots vs computer
run: |
- docker run -i -d --name my_container test_image
+ docker run -i -d --name my_container $IMAGE_NAME
docker exec -i my_container bash -c "python test/run_example_bots_vs_computer.py"
docker exec -i my_container bash -c "tree"
docker rm -f my_container
