Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compliance testing for API #2289

Merged
merged 12 commits into from
Aug 12, 2021

Conversation

amtamasi
Copy link
Contributor

@amtamasi amtamasi commented Aug 2, 2021

Closes #2278

@jkterry1
Copy link
Collaborator

jkterry1 commented Aug 3, 2021

This is awesome!

-Please make this test be applied to all environments in Gym as part of CI tests
-Please look through the API test in PettingZoo and pull the relevant errors and warnings from it that aren't included here. E.g. there's a bunch of warnings/recommendations about observation/action spaces in the PettingZoo tests that I don't believe are here

@jkterry1
Copy link
Collaborator

jkterry1 commented Aug 6, 2021

@amtamasi as long as the code is attributed and you say it was under the MIT license you don't have to copy paste the entire license it into the file

@jkterry1 jkterry1 merged commit cb1a483 into openai:master Aug 12, 2021
zlig pushed a commit to zlig/gym that referenced this pull request Sep 6, 2021
* Copied over SB3 env checker

* Added test from SB3

* Addition of MIT license attribution and black formatting

* Removed SB3 dependence

* Implemented rough, non-vectorized version of check_nan

* Made some SB3 warnings a bit more "general"

* Removed check for "unsupported" spaces, since Gym should support any space

* Added action/observation checks from pettingzoo, referenced in file docstring

* Removed copy of MIT license in file docstring

* Re-added usage of the check_inf flag for helper functino

* Changed test to be simple/classic example. Should add more tests

* Added API compliance check to registered envs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API Compliance Testing
3 participants