Repository: conda/conda (language: python)

Issue:
`.coverage` missing from CI artifacts in test workflows
### Checklist

- [x] I added a descriptive title
- [x] I searched open reports and couldn't find a duplicate

### What happened?

The test workflows in the GHA CI seem to include an upload of the `.coverage` file (see [here](https://github.com/conda/conda/blob/979716cd9768998820faf44c5af05e66ebf4cdae/.github/workflows/tests.yml#L262)), which would be useful for certain analyses.
However, when it comes to the actual upload, the file is not included, see [this report](https://github.com/conda/conda/actions/runs/11699685099/job/32582177161#step:12:25) and [the associated artifact](https://github.com/conda/conda/actions/runs/11699685099/artifacts/2150989934).

### Conda Info

_No response_

### Conda Config

_No response_

### Conda list

_No response_

### Additional Context

_No response_


Discussion / hints:

Fix patch:
diff --git a/news/14375-fix-coverage-upload b/news/14375-fix-coverage-upload
new file mode 100644
index 0000000000..2496643456
--- /dev/null
+++ b/news/14375-fix-coverage-upload
@@ -0,0 +1,19 @@
+### Enhancements
+
+* <news item>
+
+### Bug fixes
+
+* Fix CI upload of coverage files for tests (#14375)
+
+### Deprecations
+
+* <news item>
+
+### Docs
+
+* <news item>
+
+### Other
+
+* <news item>


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d149aab649..0488209537 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -156,6 +156,7 @@ jobs:
         uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
         with:
           name: test-results-${{ env.HASH }}
+          include-hidden-files: true
           path: |
             .coverage
             durations\${{ runner.os }}.json
@@ -258,6 +259,7 @@ jobs:
         uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
         with:
           name: test-results-${{ env.HASH }}
+          include-hidden-files: true
           path: |
             .coverage
             durations/${{ runner.os }}.json
@@ -564,6 +566,7 @@ jobs:
         uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
         with:
           name: test-results-${{ env.HASH }}
+          include-hidden-files: true
           path: |
             .coverage
             durations/${{ runner.os }}.json
@@ -591,6 +594,7 @@ jobs:
         uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
         with:
           name: test-results-${{ github.sha }}-all
+          include-hidden-files: true
           path: test-results-*
           retention-days: 7  # for durations.yml workflow