Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Bettini <[email protected]>
  • Loading branch information
matteobettini committed Sep 20, 2023
1 parent f8c62ca commit 8fb8336
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/unittest/install_smacv2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ mkdir "${map_dir}/SMAC_Maps"
mv *.SC2Map "${map_dir}/SMAC_Maps"
printf "StarCraft II and SMAC are installed."

export SC2PATH="${root_dir}/StarCraftII"
echo 'SC2PATH is set to ' "$SC2PATH"

pip install numpy==1.23.0
pip install git+https://github.com/oxwhirl/smacv2.git
2 changes: 0 additions & 2 deletions .github/unittest/install_vmas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
python -m pip install vmas
sudo apt-get update
sudo apt-get install python3-opengl xvfb
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1400x900x24 > /dev/null 2>&1 &
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
- name: Lint
run: |
python -m pip install --upgrade pip
python -m pip install flake8
pip install --progress-bar=off pre-commit
pip install pre-commit
set +e
pre-commit run --all-files
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/smacv2_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,4 @@ jobs:
- name: Test with pytest
run: |
root_dir="$(git rev-parse --show-toplevel)"
export SC2PATH="${root_dir}/StarCraftII"
echo 'SC2PATH is set to ' "$SC2PATH"
pytest test/test_smacv2.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
3 changes: 1 addition & 2 deletions .github/workflows/vmas_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
- name: Install vmas
run: |
bash .github/unittest/install_vmas.sh
- name: Test with pytest
run: |
pytest test/test_vmas.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
xvfb-run -s "-screen 0 1024x768x24" pytest test/test_vmas.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html

0 comments on commit 8fb8336

Please sign in to comment.