feat: expose consolidated investigation through main CLI #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - "README.md" | |
| - "ROADMAP.md" | |
| - "AGENTS.md" | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install package | |
| run: python -m pip install . | |
| - name: Test suite | |
| run: python -m unittest discover -s tests -v | |
| - name: Installed CLI smoke tests | |
| run: | | |
| data-relationship-map --help | |
| data-relationship-map validate examples/customer-chain.json | |
| data-relationship-map path examples/customer-chain.json AFS:4711 S4:10000891 | |
| data-relationship-map lineage examples/customer-chain.json AFS:4711 --direction downstream | |
| data-relationship-map artifacts examples/customer-chain.json \ | |
| --policy examples/identity-policy.json \ | |
| --output /tmp/relationship-artifacts.json | |
| test -s /tmp/relationship-artifacts.json | |
| - name: Backwards-compatible module workflows | |
| run: | | |
| python relationship_map.py examples/customer-chain.json validate | |
| python relationship_policy.py examples/customer-chain.json examples/identity-policy.json | |
| python relationship_lineage.py examples/customer-chain.json AFS:4711 --direction downstream | |
| python relationship_lineage.py examples/customer-chain.json S4:10000891 --direction upstream | |
| python relationship_lineage.py examples/customer-chain.json AFS:4711 --direction downstream --stop-system MDG | |
| python csv_adapter.py examples/csv/manifest.json --output /tmp/customer-model.json | |
| python relationship_map.py /tmp/customer-model.json validate | |
| python relationship_map.py /tmp/customer-model.json path AFS:4711 S4:10000345 | |
| python relationship_policy.py /tmp/customer-model.json examples/identity-policy.json | |
| python relationship_diff.py examples/customer-chain.json examples/customer-chain-after.json | |
| python examples/xlsx/make_sample.py examples/xlsx/customer_crosswalk.xlsx | |
| python xlsx_adapter.py examples/xlsx/manifest.json --output /tmp/customer-xlsx-model.json | |
| python relationship_map.py /tmp/customer-xlsx-model.json validate | |
| python relationship_map.py /tmp/customer-xlsx-model.json path AFS:4711 S4:10000345 | |
| python relationship_policy.py /tmp/customer-xlsx-model.json examples/identity-policy.json |