[ ] 👎 Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR introduces several improvements to our CI pipeline, specifically targeting better visibility into test execution and more detailed logging for debugging purposes. The changes include:
Enhanced logging in the skip_in_ci function in autogpts/autogpt/tests/utils.py to indicate which tests are being skipped during CI runs.
Improved error handling and logging in cli.py around GitHub token validation and permissions checks. This includes logging the received HTTP status codes and the actual scopes present in the token when a failure occurs.
A new GitHub Actions workflow (ci_improvements.yml) that includes steps for setting up the environment, verifying environment variables and GitHub token permissions, and running the test suite with the enhanced logging.
Summary of Changes
Modified autogpts/autogpt/tests/utils.py to add logging for skipped tests in CI.
Modified cli.py to enhance error logging around GitHub token validation and permissions checks.
Created .github/workflows/ci_improvements.yml for an improved CI workflow.
These changes aim to provide more detailed information in the CI logs, facilitating troubleshooting and debugging of CI failures.
PR Feedback (click)
Enhanced logging in the
skip_in_ci
function inautogpts/autogpt/tests/utils.py
to indicate which tests are being skipped during CI runs.Improved error handling and logging in
cli.py
around GitHub token validation and permissions checks. This includes logging the received HTTP status codes and the actual scopes present in the token when a failure occurs.A new GitHub Actions workflow (
ci_improvements.yml
) that includes steps for setting up the environment, verifying environment variables and GitHub token permissions, and running the test suite with the enhanced logging.Summary of Changes
autogpts/autogpt/tests/utils.py
to add logging for skipped tests in CI.cli.py
to enhance error logging around GitHub token validation and permissions checks..github/workflows/ci_improvements.yml
for an improved CI workflow.These changes aim to provide more detailed information in the CI logs, facilitating troubleshooting and debugging of CI failures.