Skip to content

Commit

Permalink
bump version (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
younik authored Aug 29, 2024
1 parent e3cfe2d commit d0134f9
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 13 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
docker build -f bin/Dockerfile \
--build-arg PYTHON_VERSION=3.11 \
--tag minari-docker .
- name: Run tests
run: docker run minari-docker pytest tests/integrations

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install Minari
run: pip install .[all,testing,integrations]

- name: Run integration tests
run: pytest tests/integrations
4 changes: 2 additions & 2 deletions docs/_scripts/generate_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
FLAGS = flags.FLAGS
flags.DEFINE_string("dataset_id", None, "Dataset ID")
flags.DEFINE_string("path", None, "Path to save the gif")
flags.DEFINE_integer("num_frames", 256, "Number of frames in the gif")
flags.DEFINE_integer("fps", 16, "Frames per second in the gif")
flags.DEFINE_integer("num_frames", 512, "Number of frames in the gif")
flags.DEFINE_integer("fps", 32, "Frames per second in the gif")


def _space_at(values, index):
Expand Down
10 changes: 8 additions & 2 deletions minari/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,11 @@
"get_normalized_score",
]

__version__ = "0.4.3"
supported_dataset_versions = {"0.4.0", "0.4.1", "0.4.2", "0.4.3"}
__version__ = "0.5.0"
supported_dataset_versions = {
"0.4.0",
"0.4.1",
"0.4.2",
"0.4.3",
"0.5.0",
}
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ testing = [
"pytest>=7.1.3",
"gymnasium-robotics>=1.2.3",
"mktestdocs",
]

integrations = [
"torchrl",
"agilerl"
]
Expand Down
10 changes: 8 additions & 2 deletions tests/integrations/test_agile_rl.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import gymnasium as gym
import h5py
import pytest
from agilerl.components.replay_buffer import ReplayBuffer
from agilerl.utils.minari_utils import minari_to_agile_buffer, minari_to_agile_dataset

import minari
from minari import DataCollector
from tests.common import create_dummy_dataset_with_collecter_env_helper


pytest.importorskip("agile_rl")
from agilerl.components.replay_buffer import ReplayBuffer # noqa: E402
from agilerl.utils.minari_utils import ( # noqa: E402
minari_to_agile_buffer,
minari_to_agile_dataset,
)


@pytest.fixture(name="dataset_id")
def dataset_id():
return "cartpole/test-v0"
Expand Down
5 changes: 4 additions & 1 deletion tests/integrations/test_torch_rl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import gymnasium as gym
import pytest
from torchrl.data.datasets.minari_data import MinariExperienceReplay


pytest.importorskip("torchrl")
from torchrl.data.datasets.minari_data import MinariExperienceReplay # noqa: E402


def test_torch_minari_experience_replay():
Expand Down

0 comments on commit d0134f9

Please sign in to comment.