From 0a16d1b1c04634dfed872115564336d67209f806 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Sep 2026 15:07:42 +0000 Subject: [PATCH] Run compatibility pytest from each language package Collecting baggage-python and tekton-dag-common tests from the repo root made pytest import them as tests.* and fail collection on Python 3.11 and 3.12. Co-authored-by: jmjava --- .github/workflows/compatibility.yml | 3 ++- libs/tekton-dag-common/tests/test_m17_compatibility.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 05a5573..b758d30 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -65,7 +65,8 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install --editable 'libs/tekton-dag-common[test]' --editable 'libs/baggage-python[test]' - python -m pytest libs/baggage-python/tests libs/tekton-dag-common/tests -q --tb=short + (cd libs/baggage-python && python -m pytest tests -q --tb=short) + (cd libs/tekton-dag-common && python -m pytest tests -q --tb=short) node: name: Node ${{ matrix.node }} diff --git a/libs/tekton-dag-common/tests/test_m17_compatibility.py b/libs/tekton-dag-common/tests/test_m17_compatibility.py index ac9208f..f13a8ae 100644 --- a/libs/tekton-dag-common/tests/test_m17_compatibility.py +++ b/libs/tekton-dag-common/tests/test_m17_compatibility.py @@ -17,6 +17,8 @@ def test_compatibility_workflow_covers_documented_runtimes(): assert 'java: ["21"]' in workflow assert 'php: ["8.3"]' in workflow assert "bash scripts/check-support-matrix.sh" in workflow + assert "(cd libs/baggage-python && python -m pytest tests" in workflow + assert "(cd libs/tekton-dag-common && python -m pytest tests" in workflow assert 'workflow: ".github/workflows/compatibility.yml"' in matrix