Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

ci: run both HTML parser compatibility versions in one job (#686)

Christopher Kevin530b119eccf4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d840b33c..7bcffb9c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,31 +147,34 @@ jobs:
run: uv run pytest -q -n auto
html-parser-compatibility:
- name: HTML parser compatibility (Python ${{ matrix.python-version }})
+ name: HTML parser compatibility (Python 3.12.11 and 3.13.5)
needs: classify-changes
if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}
# These older Python patch releases have setup-python builds for Ubuntu 24.04.
runs-on: ubuntu-24.04
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.12.11", "3.13.5"]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
- python-version: ${{ matrix.python-version }}
+ python-version: |
+ 3.12.11
+ 3.13.5
- uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
version: "0.13.8"
- - run: uv sync --extra dev --locked --python "${{ matrix.python-version }}"
- - name: Run HTML parser compatibility tests
- run: >-
- uv run --python "${{ matrix.python-version }}" pytest -q
- tests/validators/test_markdown.py
- tests/test_cli_html_parser_compat.py
+ # One job runs both patch releases in turn. The second still runs when the
+ # first fails, so the log shows a result for each.
+ - name: Run HTML parser compatibility tests on Python 3.12.11
+ run: |
+ uv sync --extra dev --locked --python 3.12.11
+ uv run --python 3.12.11 pytest -q tests/validators/test_markdown.py tests/test_cli_html_parser_compat.py
+ - name: Run HTML parser compatibility tests on Python 3.13.5
+ if: ${{ !cancelled() }}
+ run: |
+ uv sync --extra dev --locked --python 3.13.5
+ uv run --python 3.13.5 pytest -q tests/validators/test_markdown.py tests/test_cli_html_parser_compat.py
mcp-sdk-compatibility:
name: MCP probe compatibility (SDK ${{ matrix.mcp-version }})
diff --git a/tests/test_ci_workflows.py b/tests/test_ci_workflows.py
index bb74f9a3..c2d69bc7 100644
--- a/tests/test_ci_workflows.py
+++ b/tests/test_ci_workflows.py
@@ -189,12 +189,20 @@ def test_html_parser_patch_boundary_coverage_uses_available_runner_artifacts() -
# Floating the OS can make these historical patch interpreters unavailable,
# preventing the compatibility regression tests from running at all.
assert job["runs-on"] == "ubuntu-24.04"
- assert job["strategy"]["matrix"]["python-version"] == ["3.12.11", "3.13.5"]
+ versions = ["3.12.11", "3.13.5"]
setup_python = next(step for step in job["steps"] if step.get("uses", "").startswith("actions/setup-python@"))
- assert setup_python["with"]["python-version"] == "${{ matrix.python-version }}"
- commands = _runs(job)
- assert "tests/validators/test_markdown.py" in commands
- assert "tests/test_cli_html_parser_compat.py" in commands
+ assert setup_python["with"]["python-version"].split() == versions
+ # One job runs both patch releases, each against the same two test files.
+ test_steps = [step for step in job["steps"] if "pytest" in step.get("run", "")]
+ assert len(test_steps) == len(versions)
+ for version, step in zip(versions, test_steps, strict=True):
+ assert f"uv sync --extra dev --locked --python {version}\n" in step["run"]
+ assert f"uv run --python {version} pytest -q " in step["run"]
+ assert "tests/validators/test_markdown.py" in step["run"]
+ assert "tests/test_cli_html_parser_compat.py" in step["run"]
+ # A failure on the first interpreter must not hide the result for the second.
+ assert "if" not in test_steps[0]
+ assert test_steps[1]["if"] == RUN_UNLESS_CANCELLED_IF
def test_ci_skips_every_other_required_job_only_after_classification() -> None:
@@ -232,9 +240,8 @@ def test_html_parser_compatibility_keeps_old_python_versions_on_a_supported_runn
# setup-python publishes these older patch builds for Ubuntu 24.04, not 26.04.
assert job["runs-on"] == "ubuntu-24.04"
- assert job["strategy"]["matrix"]["python-version"] == ["3.12.11", "3.13.5"]
python_step = next(step for step in job["steps"] if _action_repository(step.get("uses", "")) == "actions/setup-python")
- assert python_step["with"]["python-version"] == "${{ matrix.python-version }}"
+ assert python_step["with"]["python-version"].split() == ["3.12.11", "3.13.5"]
def test_security_keeps_gitleaks_always_on_and_skips_only_nonessential_jobs() -> None: