Skip to content

Commit

Permalink
[CI] Fix CI (#79)
Browse files Browse the repository at this point in the history
* amend

* [Quality] Automatically get version

* amend

* amend
  • Loading branch information
matteobettini authored Apr 25, 2024
1 parent 7b70efe commit b0ce86f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/unittest/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


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

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

Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/install_dependencies_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ python -m pip install flake8 pytest pytest-cov hydra-core tqdm torch_geometric

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

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

Expand Down
15 changes: 15 additions & 0 deletions docs/source/usage/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ Or also clone it locally to access the configs and scripts
git clone https://github.com/facebookresearch/BenchMARL.git
pip install -e BenchMARL
Install optional packages
-------------------------

By default, BenchMARL has only the core requirements.
Here are some optional packages you may want to install.

Logging
^^^^^^^

You may want to install the following rendering and logging tools

.. code-block:: console
pip install wandb moviepy torchvision av
Install environments
--------------------

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def get_version():
"pettingzoo": ["pettingzoo[all]>=1.24.3"],
"meltingpot": ["dm-meltingpot"],
"gnn": ["torch_geometric"],
"logging": ["moviepy", "wandb", "torchvision"],
},
packages=find_packages(),
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ def test_models_forward_shape(
agent_group="agents",
action_spec=None,
)
input_td = input_spec.rand()
input_td = input_spec.expand(batch_size).rand()
out_td = model(input_td)
assert output_spec.expand(batch_size).is_in(out_td)

0 comments on commit b0ce86f

Please sign in to comment.