Skip to content

Commit 66b3491

Browse files
committed
Use dedicated workflow step for logs coverage report
The "libraries/report-size-deltas workflow" GitHub Actions workflow prints a code coverage report to the workflow run logs. Previously this was done in the same step used to run the tests. Both the test run output and the coverage report will be easier to read with a dedicated section of the logs for each, which each workflow step has. This will also make it easier to interpret any workflow failures since the failed step would only be concerned with a single specific operation.
1 parent 8c46bbd commit 66b3491

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/libraries_report-size-deltas.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ jobs:
3939
pip install --quiet pep8-naming
4040
flake8 --config "${{ env.PYTHON_PROJECT_PATH }}/.flake8" --show-source "${{ env.PYTHON_PROJECT_PATH }}"
4141
42-
- name: Run Python unit tests and report code coverage
42+
- name: Run Python unit tests and record code coverage data
4343
run: |
4444
export PYTHONPATH="${{ env.PYTHON_PROJECT_PATH }}"
4545
coverage run --source="${{ env.PYTHON_PROJECT_PATH }}" --module pytest "${{ env.PYTHON_PROJECT_TESTS_PATH }}"
46-
# Display code coverage report in workflow run log
47-
coverage report
46+
47+
- name: Display code coverage report
48+
run: coverage report
4849

4950
- name: Upload coverage report to Codecov
5051
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)