Development
Any and all contributions are welcome.
Installing for Development
ecsjobs supports Python 3.8 through 3.14 and uses uv to manage its environment.
Fork the ecsjobs repository on GitHub and clone it locally;
cd ecsjobs.Install the package and all dependency groups into
.venv/:
uv sync --locked --all-groups
Check out a new git branch. If you’re working on a GitHub issue you opened, your branch should be called “issues/N” where N is the issue number.
Tests, Lint and Docs
All of these are run in CI by .github/workflows/tests.yml. The tests run on every supported Python version with the locked dependencies, and on the oldest supported Python with the lowest dependency versions that pyproject.toml allows (uv pip install --resolution lowest-direct -e . and then uv pip install --group dev, in a fresh virtualenv).
Lint:
uv run ruff checkTests:
uv run pytest. Test coverage must stay at 100% (this is enforced). To run a single test, useuv run pytest ecsjobs/tests/test_config.py::TestClass::test_name.Docs:
uv run sphinx-build -a -n -W -b html docs/source docs/build/html. Warnings are treated as errors. The package must be installed (as above), as the docs read the version from its metadata.Docker image smoke test:
docker build -t ecsjobs:dev .and thendev/docker_smoke_test.sh ecsjobs:dev. This runs the image end-to-end in a container against a mocked AWS (moto).
Documentation for behavior changes must be updated in docs/source along with the code.
Releasing
The version number lives only in pyproject.toml. To release:
Increment
versioninpyproject.tomland runuv lock.Merge the change to
master.
When a push to master has a version greater than the latest GitHub release, .github/workflows/release.yml runs the tests, publishes the package to PyPI (using PyPI trusted publishing), pushes the Docker image to ghcr.io/jantman/ecsjobs as <version> and latest, and creates the Git tag (the bare version, e.g. 2.0.0) and a GitHub release with automatically generated release notes. Do not create tags manually. There is no changelog file; release notes are the GitHub releases.
The documentation is built and deployed to GitHub Pages at https://jantman.github.io/ecsjobs/ by .github/workflows/docs.yml on every push to master.