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

Open sweep-ai[bot] opened 4 months ago

sweep-ai[bot] commented 4 months ago

PR Feedback (click)

Summary of Changes

  1. Modified cli.py to skip Git configuration checks when running in GHA. This prevents failures due to missing Git user configurations in the GHA environment.
  2. Improved error handling in cli.py for GitHub access token validation. When running in GHA, the error messages now suggest checking the repository's secrets configuration if token validation fails.
  3. Created a new test utility gha_test_utils.py with a function skip_unless_in_ci to skip certain tests unless they are running in a CI environment. This ensures that CI-specific tests are not inadvertently skipped.
  4. Modified the skip_in_ci function in autogpts/autogpt/tests/utils.py to correctly identify GHA and other CI environments. This ensures that tests unsuitable for CI are correctly skipped.

These changes should resolve the issues causing GHA to fail and improve the robustness of the CI setup.

sweep-ai[bot] commented 4 months ago

Rollback Files For Sweep