[ ] 👎 Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR addresses the GitHub Actions (GHA) failures by ensuring the CI environment is correctly set up for tests and interactions with GitHub's API. The changes include:
Modifying the skip_in_ci utility in autogpts/autogpt/tests/utils.py to allow overriding the skip behavior with an environment variable FORCE_RUN_CI. This enables running tests in CI that were previously skipped by default.
Ensuring that the GitHub access token used in GHA has the correct permissions. This involves setting up a GitHub secret to store the token and modifying the CI workflow file to pass this token to the environment where cli.py is executed.
Adding a new documentation file docs/content/AutoGPT/setup/github_actions_guide.md explaining how to set up GitHub Actions for the Auto-GPT project. This guide includes instructions on generating a GitHub access token with the correct permissions, adding this token as a secret in the GitHub repository settings, and modifying the GitHub Actions workflow file to use this secret.
Summary of Changes
Modified autogpts/autogpt/tests/utils.py to allow overriding test skip behavior in CI.
Updated error messages in cli.py related to GitHub access token permissions.
Modified the GitHub Actions workflow file to use a GitHub secret for the access token.
Added docs/content/AutoGPT/setup/github_actions_guide.md with instructions on setting up GitHub Actions for Auto-GPT.
PR Feedback (click)
Modifying the
skip_in_ci
utility inautogpts/autogpt/tests/utils.py
to allow overriding the skip behavior with an environment variableFORCE_RUN_CI
. This enables running tests in CI that were previously skipped by default.Ensuring that the GitHub access token used in GHA has the correct permissions. This involves setting up a GitHub secret to store the token and modifying the CI workflow file to pass this token to the environment where
cli.py
is executed.Adding a new documentation file
docs/content/AutoGPT/setup/github_actions_guide.md
explaining how to set up GitHub Actions for the Auto-GPT project. This guide includes instructions on generating a GitHub access token with the correct permissions, adding this token as a secret in the GitHub repository settings, and modifying the GitHub Actions workflow file to use this secret.Summary of Changes
autogpts/autogpt/tests/utils.py
to allow overriding test skip behavior in CI.cli.py
related to GitHub access token permissions.docs/content/AutoGPT/setup/github_actions_guide.md
with instructions on setting up GitHub Actions for Auto-GPT.