Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 791 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 791 Bytes

Robot-GPT

CI

Robot with GPT as the brain.

Usage

Install dependencies:

pip install -r requirements.txt

Run the script:

# Set your OpenAI API key
export OPENAI_API_KEY="your_openai_api_key"

# Run the script
python -m robot_gpt.main

Running tests

# Install dev dependencies
pip install -r requirements-dev.txt

# Run camera tests (require a connected camera)
pytest -m 'camera'

# Run GPT API tests (Warning: The GPT API will be actually called. The API Key is required.)
pytest -s -m 'gpt'

# Run servo moter tests (require connected servo motors)
pytest -m 'servo'

# Run the all tests
pytest -m ''