File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
28+ cache : " pip"
2829
2930 - name : Install dependencies
3031 run : |
32+ pip config set global.retries 5 || true
3133 pip install -e ".[dev]"
3234
3335 - name : Lint with ruff
Original file line number Diff line number Diff line change @@ -92,6 +92,22 @@ Use `--output silent` for CI gating:
9292configdrift check dev.yaml prod.yaml --output silent || echo " Drift detected!"
9393```
9494
95+ ### GitHub Actions example
96+
97+ ``` yaml
98+ - name : Detect config drift
99+ run : |
100+ pip install configdrift
101+ configdrift check ./config/staging/app.yaml ./config/prod/app.yaml --output silent
102+ ` ` `
103+
104+ ## Troubleshooting
105+
106+ - **Exit code 1 with no output**: use ` --output table` to inspect drift details.
107+ - **TOML parsing errors on Python < 3.11**: install `tomli` and `tomli-w` or use Python 3.11+.
108+ - **Large config scans are slow**: narrow the scan to changed files or a single directory.
109+ - **Unexpected breaking drift**: review severity rules in the project settings; `database*` and `auth*` keys are flagged as breaking by default.
110+
95111# # Supported Formats
96112
97113| Format | Extension | Notes |
You can’t perform that action at this time.
0 commit comments