jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328345?usp=email )

Change subject: [tests] use native coverage for GraalPy tests
......................................................................

[tests] use native coverage for GraalPy tests

Bug: T435715
Change-Id: Iee8f33da9ba25c15911425f5a4fa6a597845a777
---
M .github/requirements/graalpy_tests.txt
M .github/workflows/graalpy_tests.yml
2 files changed, 11 insertions(+), 14 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/.github/requirements/graalpy_tests.txt 
b/.github/requirements/graalpy_tests.txt
index 1f43ace..893a2ae 100644
--- a/.github/requirements/graalpy_tests.txt
+++ b/.github/requirements/graalpy_tests.txt
@@ -5,7 +5,6 @@
 wikitextparser
 pytest >= 9.0.3
 pytest-attrib
-coverage

 # Workarounds for known GraalPy compatibility issues (SSL + charset detection)
 charset_normalizer <= 3.4.5
diff --git a/.github/workflows/graalpy_tests.yml 
b/.github/workflows/graalpy_tests.yml
index a6dfdc8..c4d1192 100644
--- a/.github/workflows/graalpy_tests.yml
+++ b/.github/workflows/graalpy_tests.yml
@@ -59,21 +59,19 @@
           PYWIKIBOT_TEST_NO_RC: 1
         run: |
           python pwb.py version
-          if [[  "${{ matrix.python-version }}" == "graalpy-25.0" && "${{ 
matrix.os }}" == "ubuntu-latest" ]]; then
-            echo "Running tests without coverage"
-            pytest -k "not TestDate" -a "not net" 
--ignore=tests/script_tests.py
-          else
-            echo "Running tests with coverage"
-            coverage run -m pytest -k "not TestDate" -a "not net" 
--ignore=tests/script_tests.py
-          fi
-      - name: Show coverage statistics
-        if: matrix.python-version != 'graalpy-25.0' || matrix.os != 
'ubuntu-latest'
-        run: |
-          coverage combine || true
-          coverage report
+          echo "Running tests with GraalPy native coverage"
+          graalpy \
+            --coverage \
+            --coverage.Output=lcov \
+            --coverage.OutputFile=graalpy.info \
+            -m pytest \
+            -k "not TestDate" \
+            -a "not net" \
+            --ignore=tests/script_tests.py
       - name: Upload coverage to Codecov
-        if: matrix.python-version != 'graalpy-25.0' || matrix.os != 
'ubuntu-latest'
         uses: codecov/codecov-action@v7
+        with:
+          files: graalpy.info
         env:
           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
       - name: Check on failure

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328345?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iee8f33da9ba25c15911425f5a4fa6a597845a777
Gerrit-Change-Number: 1328345
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to