Skip to content

CI/CD

Workflows

CI (ci.yml)

Runs on every push and PR to master.

  1. detect-changes - runs scripts/detect-changes.sh to find which connector directories have changed
  2. test - matrix job, runs test.sh in each changed connector directory

Deploy (deploy-aws.yml)

Builds and pushes connector images to ECR and updates the Lambda functions on each push to master. See AWS Lambda for the full flow.

Change detection

scripts/detect-changes.sh takes a base ref argument and outputs a JSON array of changed connector names. Connectors are discovered by scanning for pyproject.toml files at the repo root.

$ bash scripts/detect-changes.sh HEAD~1
["monoprix"]

The workflows pass different base refs depending on context:

  • PRs: origin/$GITHUB_BASE_REF (compares against the target branch)
  • Pushes: HEAD~1 (compares against the previous commit)

Adding a new connector to CI

The test workflow auto-discovers connectors by scanning for pyproject.toml files at the repo root; nothing to configure. For the AWS deploy wiring, see AWS Lambda.