Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Apr 18, 2024
1 parent d058702 commit daf8add
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/torchrl_stable_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
bash .github/unittest/install_pettingzoo.sh
- name: Tests
run: |
xvfb-run -s "-screen 0 1024x768x24" pytest test/test_algorithm.py test/test_models.py test/test_task.py test/test_vmas.py test/test_pettingzoo.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
xvfb-run -s "-screen 0 1024x768x24" pytest test/test_algorithm.py test/test_models.py test/test_task.py test/test_vmas.py test/test_pettingzoo.py test/test_meltingpot.py --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
6 changes: 6 additions & 0 deletions test/test_meltingpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#


import packaging
import pytest
import torchrl

from benchmarl.algorithms import (
algorithm_config_registry,
Expand All @@ -23,6 +25,10 @@


@pytest.mark.skipif(not _has_meltingpot, reason="Meltingpot not found")
@pytest.mark.skipif(
not packaging.version.parse(torchrl.__version__).base_version <= "0.3.1",
reason="TorchRL <= 0.3.1 does nto support meltingpot",
)
class TestMeltingPot:
@pytest.mark.parametrize("algo_config", algorithm_config_registry.values())
@pytest.mark.parametrize("task", [MeltingPotTask.COMMONS_HARVEST__OPEN])
Expand Down

0 comments on commit daf8add

Please sign in to comment.