Task Description
Add a GitHub Actions workflow that runs Black (check), flake8, and pytest on pull requests and pushes to main.
Detailed Steps
- Create
.github/workflows/ci.yml with jobs for Python 3.12
- Install deps:
pip install -r dashboard/requirements.txt if file exists; otherwise install pytest flake8 black
- Run
black --check .
- Run
flake8 .
- Run
pytest -q becoin_economy
- Cache pip between runs
- Trigger on
pull_request and push to main
Acceptance Criteria
Complexity
simple
Task Description
Add a GitHub Actions workflow that runs Black (check), flake8, and pytest on pull requests and pushes to main.
Detailed Steps
.github/workflows/ci.ymlwith jobs for Python 3.12pip install -r dashboard/requirements.txtif file exists; otherwise installpytest flake8 blackblack --check .flake8 .pytest -q becoin_economypull_requestandpushtomainAcceptance Criteria
Complexity
simple