Create local GitHub Actions runner with tests#37
Merged
thorwhalen merged 1 commit intomasterfrom Nov 13, 2025
Merged
Conversation
Add complete test infrastructure for the GitHub Actions local runner: - tests/test_local_cli.py: 40 unit tests covering all functions * Test dependency checking (act, Docker) * Test command construction and execution * Test CLI argument parsing * Test error handling and edge cases - tests/test_local_cli_integration.py: 13 integration tests * Test with actual workflow files * Test job and matrix execution * Test command construction with all options * Test error scenarios - tests/conftest.py: Pytest fixtures for test setup * Temporary workflow file fixture * Dependency mocking fixtures - pytest.ini: Test configuration with markers * Markers for unit, integration, and optional tests * Standard test discovery patterns - run_tests.sh: Convenient test runner script * Support for coverage reports * Pattern-based test selection * Verbose output option - tests/README.md: Comprehensive test documentation * How to run tests * Test organization and structure * Coverage information * Troubleshooting guide - LOCAL_CLI_USAGE.md: User documentation * Quick start guide * Installation instructions * Usage examples * Troubleshooting section Test results: 51 passed, 2 skipped (require act/Docker installation) Coverage: ~95% of local_cli.py code All tests use mocking to avoid requiring act or Docker installation, making them runnable in any environment including CI systems.
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.
Add complete test infrastructure for the GitHub Actions local runner:
tests/test_local_cli.py: 40 unit tests covering all functions
tests/test_local_cli_integration.py: 13 integration tests
tests/conftest.py: Pytest fixtures for test setup
pytest.ini: Test configuration with markers
run_tests.sh: Convenient test runner script
tests/README.md: Comprehensive test documentation
LOCAL_CLI_USAGE.md: User documentation
Test results: 51 passed, 2 skipped (require act/Docker installation)
Coverage: ~95% of local_cli.py code
All tests use mocking to avoid requiring act or Docker installation, making them runnable in any environment including CI systems.