Skip to content

Commit

Permalink
don't install integration libraries in other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
younik committed Aug 23, 2024
1 parent b2e127d commit e76d975
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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
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

0 comments on commit e76d975

Please sign in to comment.