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 Workflow #14

Open sweep-ai[bot] opened 10 months ago

sweep-ai[bot] commented 10 months ago

PR Feedback (click)

Changes

  1. Created a new GitHub Actions workflow file .github/workflows/main.yml. This workflow is triggered on push and pull_request events to the main branch. It sets up a job that runs on the latest Ubuntu runner, checks out the code, sets up Python, installs dependencies from the requirements.txt file, and runs tests.

  2. Modified cli.py to remove the try-except block for importing click and github libraries. These dependencies should be installed by the workflow and not the script at runtime.

  3. Created a requirements.txt file in the project root directory. This file lists click and PyGithub libraries with their appropriate versions. The workflow uses this file to install the necessary Python dependencies.

Summary

The changes in this PR should fix the failing GitHub Actions by setting up a proper workflow and managing dependencies correctly. Please review the changes and provide feedback.

sweep-ai[bot] commented 10 months ago

Rollback Files For Sweep