AgentEnvironment is a lightweight Python-based testing environment designed to validate and experiment with agent implementations. Created as an active development project, it provides a minimal, secure sandbox for iterating on agent behavior and testing strategies.
- Language: Python
- Testing Framework: pytest
- Code Quality Tools: pre-commit hooks with gitleaks (secret scanning), end-of-file fixer, trailing-whitespace remover
- CI/CD: GitHub Actions with CodeQL, Dependabot, SBOM scorecard, and dependency review
.github/ GitHub Actions workflows and configs
test_example.py Basic pytest suite with sanity tests
.pre-commit-config.yaml Pre-commit hooks configuration
README.md Project documentation
LICENSE MIT License
This is a minimal, bootstrapped testing framework. Tests run via pytest, with security gates managed through pre-commit hooks and GitHub Actions. The setup is designed as a sandbox for iterating on agent implementations.
- Python 3.8+ installed on your system
- pip (comes with Python)
- Git for cloning the repository
-
Clone the repository:
git clone https://github.com/Git-Hub-Chris/AgentEnvironment.git cd AgentEnvironment -
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
Execute the test suite using pytest:
pytest test_example.pyFor verbose output with detailed test information:
pytest test_example.py -vFor running tests with coverage:
pytest test_example.py --covPre-commit hooks automatically run security checks and code formatting on each commit:
-
Install pre-commit:
pip install pre-commit
-
Install the git hook scripts:
pre-commit install
-
Run hooks manually (optional):
pre-commit run --all-files
Hooks will now automatically run on git commit. This includes:
- gitleaks: Secret detection
- trailing-whitespace: Whitespace cleanup
- end-of-file-fixer: File formatting
- Review
test_example.pyto understand the test structure - Modify or add your own tests for agent implementations
- Push to GitHub to trigger CI/CD workflows
This project is licensed under the MIT License - see the LICENSE file for details.