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

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@0.2.2 --help              # run a pinned release from PyPI
uv tool install tangier==0.2.2        # 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.2

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.2
File Size Uploaded Provenance
tangier-0.2.2.tar.gz 183.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 329.2 kB

Release files / tangier-0.2.2.tar.gz

Download URL tangier-0.2.2.tar.gz
Size 183.8 kB
Tags Source
SHA-256 checksum
How to use checksums
472055853743d5b620d8691544e39a2a76bf7586c582aef6a22af1adb3a56876
BLAKE2b-256 checksum
How to use checksums
02b4babc6011a7b2a88a924bef9dbd81dd24a9ef1adf14d4485760e09cf2730a
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 6, 2026.

Transparency log

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

Download URL tangier-0.2.2-py3-none-any.whl
Size 145.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1870aea7643515fc21e9373368ea10df697bd76247f019bc687b2087941691b
BLAKE2b-256 checksum
How to use checksums
0dad344b2d013d1770d46de2c8f86219640e5f4d2ebdeb77bc2790a32eeee777
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 6, 2026.

Transparency log

Security for tangier 0.2.2

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.2.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 6, 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