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 #52

Open sweep-ai[bot] opened 4 months ago

sweep-ai[bot] commented 4 months ago

PR Feedback (click)

Summary of Changes

  1. Created a new GHA workflow file autogpts/.github/workflows/ci.yml that defines a workflow for installing project dependencies, running lint checks, and executing the test suite. The workflow also sets up necessary environment variables for GitHub API interactions and includes steps for caching dependencies.

  2. Modified the skip_in_ci function in autogpts/autogpt/tests/utils.py to correctly identify GHA environments by checking for the GITHUB_ACTIONS environment variable.

  3. Updated the GitHub API interaction sections in cli.py to ensure robust error handling and provide clear, actionable feedback for CI environments. Added additional logging to diagnose permission issues in CI runs and checks to ensure the GitHub access token is valid for the required scopes.

  4. Added a step to the GHA workflow in autogpts/.github/workflows/ci.yml that checks for the correct configuration of the GitHub access token before proceeding with tests that require GitHub API access.

These changes aim to minimize CI failures related to GitHub API access and ensure that tests unsuitable for GHA are appropriately skipped.

sweep-ai[bot] commented 4 months ago

Rollback Files For Sweep