Thetruemank / Auto-GPT

An experimental open-source attempt to make GPT-4 fully autonomous.
https://agpt.co
MIT License
0 stars 0 forks source link

Fix GitHub Actions Failures #58

Open sweep-ai[bot] opened 8 months ago

sweep-ai[bot] commented 8 months ago

PR Feedback (click)

Summary of Changes

  1. GitHub Actions Workflow: A new GitHub Actions workflow file .github/workflows/python-app.yml was created. This workflow is triggered on push and pull request events to the master branch. It sets up a Python environment, installs dependencies, sets up necessary environment variables, and runs pytest for executing tests.

  2. Dependency Management: The cli.py script was modified to remove direct calls to os.system("pip3 install ..."). Instead, a requirements.txt file should be provided at the root of the repository, listing all necessary packages. Users are instructed to install dependencies using pip install -r requirements.txt before running the CLI script.

  3. Environment Variables: A .env.example file was created at the root of the repository, listing all the environment variables used by the CLI script with placeholder values or instructions on how to obtain them. Contributors are instructed to copy .env.example to .env and fill in the actual values for their development environment. The CLI script was modified to load environment variables from a .env file using the python-dotenv library.

These changes aim to stabilize the GitHub Actions workflow, ensuring that tests and other commands can run successfully in the CI environment.

sweep-ai[bot] commented 8 months ago

Rollback Files For Sweep