Repository: snek5000/snek5000 (language: python)

Issue:
codecov link in README broken
https://app.codecov.io/gh/snek5000/snek5000

This page does not exists. I guess it should be created on the website?


Discussion / hints:
Actually this page does exist but the badge mentions 0% coverage... I don't understand the problem but it seems that the coverage data are not correctly uploaded.
I updated CODECOV_TOKEN. Let us see what it gives.

Fix patch:
diff --git a/pyproject.toml b/pyproject.toml
index fb57055f..e578e124 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,11 +16,11 @@ profile = "black"
 line_length = 82
 
 [tool.coverage.run]
-source = ["snek5000", "./tests"]
+source = ["snek5000", "snek5000_canonical", "./tests"]
 data_file = ".coverage/coverage"
 omit = [
     "*/try_*.py",
-    "*/_old_*.py",
+    "*/_old_*.py"
 ]
 
 # Note
@@ -30,11 +30,11 @@ omit = [
 # multiple packages (inc. packages in docs/examples) when installed this way
 # seems to be unsupported by Coverage.py.
 #
-[tool.coverage.paths]
-source = [
-    "./src/",
-    ".nox/tests-cov/lib/python*/site-packages/",
-]
+# [tool.coverage.paths]
+# source = [
+#     "./src/",
+#     ".nox/tests-cov/lib/python*/site-packages/",
+# ]
 
 
 [tool.coverage.report]


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8792af45..14436e45 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -46,7 +46,7 @@ jobs:
 
     - name: Run tests
       run: |
-        nox --session tests-cov -- -v -s --runslow
+        nox --session tests-cov -- -v -s --runslow --cov-report=xml
 
     - name: Upload coverage to codecov
       if: ${{ success() }}