-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
128 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,51 @@ | ||
name: Tests and Linters 🧪 | ||
|
||
on: [ push, pull_request ] | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
tests-and-linters: | ||
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | ||
runs-on: "${{ matrix.os }}" | ||
timeout-minutes: 20 | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9"] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Install dependencies for viewer test | ||
run: sudo apt-get update && sudo apt-get install -y xvfb | ||
|
||
- name: Checkout jumanji 🐍 | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.26" | ||
enable-cache: true | ||
cache-dependency-glob: "requirements/requirements**.txt" # invalidate cache when requirements file changes | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
- name: Install python dependencies 🔧 | ||
run: pip install .[dev,train] | ||
run: uv pip install .[dev,train] | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
|
||
- name: Run linters 🖌️ | ||
run: pre-commit run --all-files --verbose | ||
|
||
- name: Run tests 🧪 | ||
run: pytest -n 2 --cov=jumanji --cov-report=term-missing --junit-xml=test-results.xml -vv jumanji | ||
|
||
- name: Run coverage | ||
run: | | ||
coverage html --directory=coverage_html_report | ||
coverage report --fail-under=0.97 | ||
- name: Test build docs 📖 | ||
run: mkdocs build --verbose --site-dir docs_public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,7 @@ cython_debug/ | |
# MacBook Finder | ||
.DS_Store | ||
|
||
3.8/ | ||
3.10/ | ||
jumanji_env/ | ||
**/outputs/ | ||
*.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,51 @@ | ||
[tool.isort] | ||
profile = "black" | ||
[build-system] | ||
requires=["setuptools>=62.6"] | ||
build-backend="setuptools.build_meta" | ||
|
||
[project] | ||
name="jumanji" | ||
authors=[{name="InstaDeep Ltd", email="[email protected]"}] | ||
dynamic=["version", "dependencies", "optional-dependencies"] | ||
license={file="LICENSE"} | ||
description="A diverse suite of scalable reinforcement learning environments in JAX" | ||
readme ="README.md" | ||
requires-python=">=3.10" | ||
keywords=["reinforcement-learning", "python", "jax"] | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"License :: OSI Approved :: Apache Software License", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include=["jumanji*"] | ||
|
||
[tool.setuptools.package-data] | ||
"jumanji" = ["py.typed"] | ||
|
||
[tool.setuptools.dynamic] | ||
version={attr="jumanji.version.__version__"} | ||
dependencies={file="requirements/requirements.txt"} | ||
optional-dependencies.dev={file=["requirements/requirements-dev.txt"]} | ||
optional-dependencies.train={file=["requirements/requirements-train.txt"]} | ||
|
||
|
||
[project.urls] | ||
"Homepage"="https://github.com/instadeep/jumanji" | ||
"Bug Tracker"="https://github.com/instadeep/jumanji/issues" | ||
"Documentation"="https://instadeepai.github.io/jumanji" | ||
|
||
[tool.mypy] | ||
python_version = 3.8 | ||
python_version = "3.10" | ||
namespace_packages = true | ||
incremental = false | ||
cache_dir = "" | ||
|
@@ -47,3 +90,6 @@ module = [ | |
"PIL.*", | ||
] | ||
ignore_missing_imports = true | ||
|
||
[tool.isort] | ||
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.