feat: Add GitHub Actions CI workflow - #1
Merged
Conversation
This commit introduces a new GitHub Actions workflow to run the test suite automatically on new commits. The following changes were made: - Added a `ci.yml` workflow file to run tests on push to `main` and on pull requests. - Fixed the `pyproject.toml` configuration and added `__init__.py` files to resolve packaging errors. - Repaired the test suite by mocking environment variables and external services to ensure tests can run in a CI environment.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces automated CI/CD testing capabilities by adding a GitHub Actions workflow that runs tests on push to main and on pull requests. The changes include fixing test environment isolation and packaging configuration to ensure the test suite can run reliably in CI environments.
- Added GitHub Actions CI workflow for automated testing
- Fixed test mocking to properly isolate environment variables and external dependencies
- Updated packaging configuration to resolve build errors
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds CI workflow to run tests on Python 3.11 for pushes and PRs |
| tests/test_bot.py | Improves test isolation with environment variable mocking and fixes command invocation |
| pyproject.toml | Updates build configuration to properly package the src directory |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new GitHub Actions workflow to run the test suite automatically on new commits.
The following changes were made:
ci.ymlworkflow file to run tests on push tomainand on pull requests.pyproject.tomlconfiguration and added__init__.pyfiles to resolve packaging errors.