Repository: fmi-faim/faim-ipa (language: python)

Issue:
Re-enable uploading to codecov in CI
With https://github.com/fmi-faim/faim-ipa/commit/46f3c599d0aec8b4a2029ffaee541b8a2e511e42 we lost the `codecov-action`:

```diff
---      - name: Upload coverage to Codecov
---        uses: codecov/codecov-action@v2
```

Let's re-enable, after making sure that `hatch run cov` produces the required files.


Discussion / hints:

Fix patch:
diff --git a/pyproject.toml b/pyproject.toml
index 98a9a57a..534585d8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -63,6 +63,11 @@ cov-html = [
   "- coverage combine",
   "coverage html",
 ]
+cov-xml = [
+  "test-cov",
+  "- coverage combine",
+  "coverage xml",
+]
 cov = [
   "test-cov",
   "cov-report",
@@ -105,6 +110,7 @@ faim_ipa = ["src/faim_ipa", "*/faim-ipa/src/faim_ipa"]
 tests = ["tests", "*/faim-ipa/tests"]
 
 [tool.coverage.report]
+show_missing = true
 exclude_lines = [
   "no cov",
   "if __name__ == .__main__.:",


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 83b3820a..fb0290d8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -39,4 +39,10 @@ jobs:
     #   run: hatch fmt --check
 
     - name: Run tests
-      run: hatch run cov
+      run: hatch run cov-xml
+
+    - name: Upload coverage to Codecov
+      uses: codecov/codecov-action@v4
+      with:
+        fail_ci_if_error: true
+        token: ${{ secrets.CODECOV_TOKEN }}