Skip to content

Commit

Permalink
Beautify logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Feb 24, 2024
1 parent 62d3b4f commit dff220b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ runs:
- name: Check for Python3
id: python
run: |
# Check for Python3
echo '::group::Check for Python3'
# we check version here just to execute `python3` with an argument
Expand Down Expand Up @@ -188,6 +189,7 @@ runs:
- name: Detect OS
id: os
run: |
# Detect OS
case "$RUNNER_OS" in
Linux*)
echo "pip-cache=~/.cache/pip" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -216,6 +218,7 @@ runs:
env:
PIP_OPTIONS: ${{ steps.os.outputs.pip-options }}
run: |
# Create virtualenv
echo '::group::Create virtualenv'
echo "Python that creates venv: $PYTHON_BIN"
Expand Down Expand Up @@ -257,6 +260,7 @@ runs:

- name: Install Python dependencies
run: |
# Install Python dependencies
echo '::group::Install Python dependencies'
# make sure wheel is installed, which improves installing our dependencies
Expand All @@ -269,6 +273,7 @@ runs:
- name: Publish Test Results
id: test-results
run: |
# Publish Test Results
echo '::group::Publish Test Results'
"$PYTHON_VENV" "$GITHUB_ACTION_PATH/../python/publish_test_results.py"
echo '::endgroup::'
Expand Down
4 changes: 4 additions & 0 deletions linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ runs:
- name: Check for Python3
id: python
run: |
# Check for Python3
echo '::group::Check for Python3'
# we check version here just to execute `python3` with an argument
Expand Down Expand Up @@ -191,6 +192,7 @@ runs:
id: venv
continue-on-error: true
run: |
# Create virtualenv
echo '::group::Create virtualenv'
echo "Python that creates venv: $PYTHON_BIN"
Expand Down Expand Up @@ -223,6 +225,7 @@ runs:

- name: Install Python dependencies
run: |
# Install Python dependencies
echo '::group::Install Python dependencies'
# make sure wheel is installed, which improves installing our dependencies
Expand All @@ -235,6 +238,7 @@ runs:
- name: Publish Test Results
id: test-results
run: |
# Publish Test Results
echo '::group::Publish Test Results'
"$PYTHON_VENV" "$GITHUB_ACTION_PATH/../python/publish_test_results.py"
echo '::endgroup::'
Expand Down
4 changes: 4 additions & 0 deletions macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ runs:
- name: Check for Python3
id: python
run: |
# Check for Python3
echo '::group::Check for Python3'
# we check version here just to execute `python3` with an argument
Expand Down Expand Up @@ -191,6 +192,7 @@ runs:
id: venv
continue-on-error: true
run: |
# Create virtualenv
echo '::group::Create virtualenv'
echo "Python that creates venv: $PYTHON_BIN"
Expand Down Expand Up @@ -223,6 +225,7 @@ runs:

- name: Install Python dependencies
run: |
# Install Python dependencies
echo '::group::Install Python dependencies'
# make sure wheel is installed, which improves installing our dependencies
Expand All @@ -235,6 +238,7 @@ runs:
- name: Publish Test Results
id: test-results
run: |
# Publish Test Results
echo '::group::Publish Test Results'
"$PYTHON_VENV" "$GITHUB_ACTION_PATH/../python/publish_test_results.py"
echo '::endgroup::'
Expand Down
4 changes: 4 additions & 0 deletions windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ runs:
- name: Check for Python3
id: python
run: |
# Check for Python3
Write-Output "::group::Check for Python3"
try {
# we check version here just to execute `python3` with an argument
Expand Down Expand Up @@ -192,6 +193,7 @@ runs:
id: venv
continue-on-error: true
run: |
# Create virtualenv
Write-Output "::group::Create virtualenv"
try {
Write-Output "Python that creates venv: $env:PYTHON_BIN"
Expand Down Expand Up @@ -224,6 +226,7 @@ runs:

- name: Install Python dependencies
run: |
# Install Python dependencies
Write-Output "::group::Install Python dependencies"
try {
# make sure wheel is installed, which improves installing our dependencies
Expand All @@ -237,6 +240,7 @@ runs:
- name: Publish Test Results
id: test-results
run: |
# Publish Test Results
Write-Output "::group::Publish Test Results"
try {
Invoke-Expression -Command "& '$env:PYTHON_VENV' '$env:GITHUB_ACTION_PATH\..\python\publish_test_results.py'"
Expand Down
4 changes: 4 additions & 0 deletions windows/bash/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ runs:
- name: Check for Python3
id: python
run: |
# Check for Python3
echo '::group::Check for Python3'
# we check version here just to execute `python3` with an argument
Expand Down Expand Up @@ -191,6 +192,7 @@ runs:
id: venv
continue-on-error: true
run: |
# Create virtualenv
echo '::group::Create virtualenv'
echo "Python that creates venv: $PYTHON_BIN"
Expand Down Expand Up @@ -227,6 +229,7 @@ runs:

- name: Install Python dependencies
run: |
# Install Python dependencies
echo '::group::Install Python dependencies'
# make sure wheel is installed, which improves installing our dependencies
Expand All @@ -239,6 +242,7 @@ runs:
- name: Publish Test Results
id: test-results
run: |
# Publish Test Results
echo '::group::Publish Test Results'
"$PYTHON_VENV" "$GITHUB_ACTION_PATH/../../python/publish_test_results.py"
echo '::endgroup::'
Expand Down

0 comments on commit dff220b

Please sign in to comment.