notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

Enables CircleCI unit testing support #77

Closed ButkiewiczP closed 5 years ago

ButkiewiczP commented 5 years ago

This adds the required config.yml file that CircleCI needs to launch a container and run the tests defined in the /test folder.

Additionally, this adds a new requirements-test.txt file, which contains a subset of the libraries dependencies, as well as the pytest framework dependency. This file is used by the CI container to install any requirements, since without a GPU, we can't install things like tensorflow-gpu, etc. This has been noted in the README.

I've also added the markdown for an SVG badge to the README using your (@notadamking ) username, so it'll show as a broken link until you enable the project (if you end up choosing to do so) in CircleCI.

Just a note that this is opened against the latest data-providers branch, since that's the only branch with tests on it currently.

You can see an example of the tests being run here: https://circleci.com/gh/ButkiewiczP/RLTrader/4