sysdelta

Development

Make Targets

The Makefile is generated by bmk (its first line reads # BMK MAKEFILE <version>) and is rewritten when bmk updates it, so this file keeps no copy of the target list. Run

make help

for the authoritative, current list: it reads the target comments from the Makefile itself. bmk --help and bmk <command> --help describe the underlying commands.

The targets used day to day:

Test Markers

Command What it runs
make test All tests EXCEPT those marked integration
make testintegration ONLY tests marked integration
CI All tests EXCEPT those marked local_only (-m "not local_only")
pytest tests/ ALL tests (no marker filter)

A test that needs external resources (a remote host, a database) carries both @pytest.mark.integration (so make test skips it and make testintegration runs it) and @pytest.mark.local_only (so CI skips it).

Adding New Integration Tests

Mark tests that require external resources:

@pytest.mark.local_only
@pytest.mark.integration
@pytest.mark.os_agnostic
def test_real_external_service(...):
    """Integration test requiring external service."""
    ...

These tests are skipped by make test and in CI, and run with make testintegration.

Versioning & Metadata

Dependency Auditing

CI & Publishing

The GitHub Actions workflows under .github/workflows/ are distributed from the default_cicd_public template; change them there, not in this repository.

To publish a release:

  1. make bump-patch (or bump-minor / bump-major), then commit and push.
  2. make release tags the current version and creates the GitHub release; the tag starts default_release_public.yml.

Codecov