Fix the Codecov token not being usable in the unit tests GitHub Actions workflow

The job's environment must be `code-coverage` before it has access to
the `CODECOV_TOKEN` secret that's required for pushing coverage data to
Codecov. Without it we get an HTTP 400 response with a `Token required
because branch is protected` message if it's run from `master`.

Fixes f932a58d.
This commit is contained in:
Tim van der Meij 2026-04-26 20:25:21 +02:00
parent f45d507302
commit 142c581362
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -35,6 +35,7 @@ jobs:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
environment: code-coverage
steps:
- name: Checkout repository