diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ff7adb..a7a7a98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,8 @@ jobs: TESTS=$(python -c " import xml.etree.ElementTree as ET root = ET.parse('report.xml').getroot() - print(root.attrib.get('tests', '0')) + ts = root.find('testsuite') + print(ts.attrib.get('tests', '0') if ts is not None else root.attrib.get('tests', '0')) ") echo "Test count: $TESTS" curl -s -o /dev/null -w "%{http_code}" \