Skip to content

Commit b0ce86f

Browse files
[CI] Fix CI (#79)
* amend * [Quality] Automatically get version * amend * amend
1 parent 7b70efe commit b0ce86f

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.github/unittest/install_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
python -m pip install --upgrade pip
4-
python -m pip install flake8 pytest pytest-cov hydra-core tqdm torch torch_geometric
4+
python -m pip install flake8 pytest pytest-cov hydra-core tqdm torch torch_geometric torchvision av
55

66
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
77

.github/unittest/install_dependencies_nightly.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ python -m pip install flake8 pytest pytest-cov hydra-core tqdm torch_geometric
55

66
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
77

8-
python -m pip install torch
8+
python -m pip install torch torchvision av
99
# Not using nightly torch
1010
# python -m pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
1111

docs/source/usage/installation.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ Or also clone it locally to access the configs and scripts
3030
git clone https://github.com/facebookresearch/BenchMARL.git
3131
pip install -e BenchMARL
3232
33+
Install optional packages
34+
-------------------------
35+
36+
By default, BenchMARL has only the core requirements.
37+
Here are some optional packages you may want to install.
38+
39+
Logging
40+
^^^^^^^
41+
42+
You may want to install the following rendering and logging tools
43+
44+
.. code-block:: console
45+
46+
pip install wandb moviepy torchvision av
47+
3348
Install environments
3449
--------------------
3550

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def get_version():
5252
"pettingzoo": ["pettingzoo[all]>=1.24.3"],
5353
"meltingpot": ["dm-meltingpot"],
5454
"gnn": ["torch_geometric"],
55+
"logging": ["moviepy", "wandb", "torchvision"],
5556
},
5657
packages=find_packages(),
5758
include_package_data=True,

test/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ def test_models_forward_shape(
170170
agent_group="agents",
171171
action_spec=None,
172172
)
173-
input_td = input_spec.rand()
173+
input_td = input_spec.expand(batch_size).rand()
174174
out_td = model(input_td)
175175
assert output_spec.expand(batch_size).is_in(out_td)

0 commit comments

Comments
 (0)