Mention job name in codecov upload
We upload multiple results to codecov, which get merged into each other.
However, codecov keeps the original uploads and provides a way to show
only data from a single upload, which is quite helpful for debugging.
Give our uploads a sensible name to distinguish them.
@@ -302,7 +302,9 @@ jobs:
|| steps.unixtesting.outcome == 'success')
&& !startsWith(matrix.os, 'macos')
&& matrix.cxx != 'clang++'
-
- run: |
- pip install codecov
- codecov --gcov-args='-rl'
+ uses: codecov/codecov-action@v1
+ with:
+ # There seems to be no way (as of Feb 2021) to get the job name in a
+ # variable; we hence have to re-assemble it here.
+ name: "${{matrix.extra_name}}${{matrix.sim}} (${{matrix.sim-version}}) | ${{matrix.os}} | Python ${{matrix.python-version}}"
+ gcov_args: "-rl"
