From 666470b9f8453a861359783055ef700e57baa5f9 Mon Sep 17 00:00:00 2001 From: Nawaz-khan-droid Date: Tue, 26 May 2026 17:31:33 +0530 Subject: [PATCH 1/3] test: add extraction regression workflow --- .github/workflows/extraction-regression.yml | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/extraction-regression.yml diff --git a/.github/workflows/extraction-regression.yml b/.github/workflows/extraction-regression.yml new file mode 100644 index 000000000..d86531482 --- /dev/null +++ b/.github/workflows/extraction-regression.yml @@ -0,0 +1,47 @@ +name: Extraction Regression + +on: + pull_request: + workflow_dispatch: + +jobs: + extraction-regression: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Graphify + run: | + pip install -e ".[mcp,pdf,watch,sql]" + + - name: Create tiny fixture corpus + run: | + mkdir fixture + echo "def hello(): return 'world'" > fixture/app.py + echo "# Demo Project" > fixture/README.md + + - name: Run graph extraction + run: | + graphify fixture --no-viz + + - name: Verify graph outputs exist + run: | + test -f graphify-out/graph.json + test -f graphify-out/GRAPH_REPORT.md + + - name: Verify graph contains nodes + run: | + python -c " + import json + with open('graphify-out/graph.json') as f: + data = json.load(f) + assert len(data.get('nodes', [])) > 0 + print('Graph contains nodes') + " \ No newline at end of file From 20aa8e5f8a2abfeaa872aaaca3ba4ede6855f7e1 Mon Sep 17 00:00:00 2001 From: Mohammed Nawaz Khan Date: Thu, 28 May 2026 16:13:02 +0530 Subject: [PATCH 2/3] Update extraction regression workflow for pull requests --- .github/workflows/extraction-regression.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extraction-regression.yml b/.github/workflows/extraction-regression.yml index d86531482..4666671a1 100644 --- a/.github/workflows/extraction-regression.yml +++ b/.github/workflows/extraction-regression.yml @@ -2,6 +2,10 @@ name: Extraction Regression on: pull_request: + paths: + - 'graphify/**' + - 'tests/**' + - 'pyproject.toml' workflow_dispatch: jobs: @@ -29,7 +33,7 @@ jobs: - name: Run graph extraction run: | - graphify fixture --no-viz + graphify extract fixture - name: Verify graph outputs exist run: | @@ -44,4 +48,5 @@ jobs: data = json.load(f) assert len(data.get('nodes', [])) > 0 print('Graph contains nodes') - " \ No newline at end of file + " + From 9c284dcc65caf9dc4b908c932b0ede4a2621ff7c Mon Sep 17 00:00:00 2001 From: Mohammed Nawaz Khan Date: Thu, 28 May 2026 16:20:29 +0530 Subject: [PATCH 3/3] fix: address workflow review feedback Ensure the graph contains nodes in the regression test.