From aab632008ded1ff58e430a0785216d7e130cea3f Mon Sep 17 00:00:00 2001 From: Zeroneiii <127013804+MeaFew@users.noreply.github.com> Date: Sat, 25 Jul 2026 18:54:54 +0800 Subject: [PATCH 1/3] ci: install plotting deps for graphguard tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4ba7d1..b73fb72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: - name: Install CPU torch + torch-geometric run: | pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu - pip install torch-geometric>=2.4.0 numpy pandas scikit-learn + pip install "torch-geometric>=2.4.0" numpy pandas scikit-learn matplotlib seaborn - run: pip install -e ".[dev]" - name: Materialize graph from synthetic fallback run: | From d99cbb0602557018083355e7b423fc8be5df083b Mon Sep 17 00:00:00 2001 From: Zeroneiii <127013804+MeaFew@users.noreply.github.com> Date: Sat, 25 Jul 2026 19:06:13 +0800 Subject: [PATCH 2/3] ci: install xgboost for graphguard tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b73fb72..9208ebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: - name: Install CPU torch + torch-geometric run: | pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu - pip install "torch-geometric>=2.4.0" numpy pandas scikit-learn matplotlib seaborn + pip install "torch-geometric>=2.4.0" numpy pandas scikit-learn xgboost matplotlib seaborn - run: pip install -e ".[dev]" - name: Materialize graph from synthetic fallback run: | From 3df0a9d6ba3ebdaf510a8a382d48620aa0a5cbd6 Mon Sep 17 00:00:00 2001 From: Zeroneiii <127013804+MeaFew@users.noreply.github.com> Date: Sat, 25 Jul 2026 19:10:02 +0800 Subject: [PATCH 3/3] ci: count graph materialization in coverage --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9208ebb..5a63a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,10 +41,13 @@ jobs: - run: pip install -e ".[dev]" - name: Materialize graph from synthetic fallback run: | - python -m graphguard.download_data - python -m graphguard.build_graph + coverage erase + coverage run -m graphguard.download_data + coverage run --append -m graphguard.build_graph - name: Run tests with coverage - run: pytest tests/ -v --tb=short --cov=graphguard --cov-report=term-missing --cov-fail-under=30 + run: | + coverage run --append -m pytest tests/ -v --tb=short + coverage report --show-missing --fail-under=30 typecheck: # Gradual typing: mypy reports but does not block CI yet.