Skip to main content

tangier

tangier makes monorepo CI smart: it maps your app into packages, works out which tests, gates and builds a change actually needs, and skips the rest — including anything you already ran locally.

One pipeline.toml at the repo root holds the map. tangier reads it locally and in CI, so the developer and the workflow agree on what a change touches.

What it does

  1. Runs only the tests a change can affect. Tags map paths to packages, depends carries a library change to everything that uses it, and items lists turn the selected tags into test runner arguments.
  2. Versions packages by the files that changed, not by commits. An image tag is a hash of the package's files and its dependencies' files. A docs-only commit, a rebase or a revert moves no tag, and a published tag is never rebuilt.
  3. Skips in CI what already passed locally. A gate records a local pass under a key made from content. CI finds the record and skips the job.
  4. Builds many packages from one repo, each with its own version. Each SHA bucket has its own <BUCKET>_VERSION, and a bucket with an [image.*] table builds as an image. CI builds the images a change touched, as one matrix.

An example

askastro, a Python and React monorepo with seven images, maps a service like this:

[smartycore]                       # a shared library
paths = "lib/smartycore/**"

[astronort-lector]                 # a service: one image, its own version
paths          = "service/lector/**"
depends        = ["smartycore", "askastro-db"]
sha            = true
unittest_items = "service/lector"

[image.astronort-lector]
dockerfile = "service/lector/Dockerfile"

[gate.test-backend]                # run locally before a push; CI reuses the pass
cmd   = "bin/test --dirs {unittest-items} --files {unittest-files}"
scope = ["smartypants", "astronort-lector", "test-backend-inputs"]

A change to lib/smartycore selects every service that depends on it, runs their unit tests, and rebuilds their images. A change to service/lector runs only lector's tests and builds only lector's image. A pre-push hook runs the gates, and gate run publishes each pass to origin:

tangier gate run --all --wait

One CI workflow handles every event: a pull request runs what its diff selects, a push to main builds and deploys to uat, and a nightly runs everything with --full.

A plan job runs changemap github-outputs, gate github-outputs and changemap build-matrix. Every other job's if: reads one of its outputs, so no path rule is copied into YAML.

Install

uvx tangier --help              # run the latest release from PyPI
uv tool install tangier         # or put it on PATH

Without uv, python3 -m tangier runs it from a checkout.

tangier needs Python 3.11 or later and has no dependencies. It runs on CI runners against the system Python, with no setup-python step and no package installer.

Documentation

Read the guide in order to learn tangier:

  1. Map your app: tags, depends, ignore-by-default.
  2. Selective tests: items lists, runners, file-sets, touched flags.
  3. Gates: record a local pass, and skip it in CI.
  4. Packages and builds: content-hash versions and images.
  5. GitHub Actions: the plan job, gate jobs, builds and the nightly.
  6. Other features: deploy and tailnet.

Look things up in the reference:

Follow a checklist:

The reference and checklists are the agent skill in skills/tangier/. Link it into an agent's skills directory, and the agent reads the same pages:

ln -s /path/to/tangier/skills/tangier ~/.claude/skills/tangier

The design rules live in docs/specs/: changemap and gate.

Other features

tangier also deploys with kustomize (tangier deploy) and checks the Tailscale path to the cluster (tangier tailnet check). See other features.

Contributing

See CONTRIBUTING.md for the development loop and the release process.

Metadata

Release files for tangier 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tangier 0.2.3
File Size Uploaded Provenance
tangier-0.2.3.tar.gz 190.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tangier 0.2.3
File Interpreter ABI Platform
tangier-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 340.7 kB

Release files / tangier-0.2.3.tar.gz

Download URL tangier-0.2.3.tar.gz
Size 190.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b1e60b0f59e2850be25f8e0a1041660bc404a703772a3f814dacdb953f235c83
BLAKE2b-256 checksum
How to use checksums
2dd127aa1eb6f0078851e257db47777f74bc1449457db269a2781692884176a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / tangier-0.2.3-py3-none-any.whl

Download URL tangier-0.2.3-py3-none-any.whl
Size 150.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec37f2a6c6d283550a10aacad06dcac7f5290d90f5227321c97a3790cf581968
BLAKE2b-256 checksum
How to use checksums
ad0efa26233d4248e5d324c065e4223daf26054a54b0f87c0452980030e74be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for tangier 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tangier-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page