[ ] π Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR addresses potential points of failure in our GitHub Actions (GHA) workflow. The changes focus on improving the handling of environmental variables, test configurations, and GitHub authentication mechanisms within the CI/CD pipeline.
Summary of Changes
Improved Test Skipping Logs: Modified the skip_in_ci function in autogpts/autogpt/tests/utils.py to log the names of tests being skipped in the CI environment. This provides clearer logs for debugging test skipping behavior.
Enhanced GitHub Token Validation: Updated the GitHub token validation logic in autogpts/autogpt/app/cli.py to handle the absence of required scopes more gracefully and provide a clear error message. Additional logging was added to detail the scopes present if the required scopes are missing.
New GitHub Actions Workflow: Created a new GHA workflow file autogpts/.github/workflows/ci.yml to ensure that environmental variables, secrets, and any required setup steps are correctly configured for the CI process. The workflow includes steps for setting up Python, installing dependencies, setting up GitHub CLI for authentication, and running the test suite.
These changes aim to improve the stability and predictability of our CI/CD process, making it easier to identify and resolve issues that may cause GHA failures.
PR Feedback (click)
Summary of Changes
Improved Test Skipping Logs: Modified the
skip_in_ci
function inautogpts/autogpt/tests/utils.py
to log the names of tests being skipped in the CI environment. This provides clearer logs for debugging test skipping behavior.Enhanced GitHub Token Validation: Updated the GitHub token validation logic in
autogpts/autogpt/app/cli.py
to handle the absence of required scopes more gracefully and provide a clear error message. Additional logging was added to detail the scopes present if the required scopes are missing.New GitHub Actions Workflow: Created a new GHA workflow file
autogpts/.github/workflows/ci.yml
to ensure that environmental variables, secrets, and any required setup steps are correctly configured for the CI process. The workflow includes steps for setting up Python, installing dependencies, setting up GitHub CLI for authentication, and running the test suite.These changes aim to improve the stability and predictability of our CI/CD process, making it easier to identify and resolve issues that may cause GHA failures.