Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grouping lines in GH actions output #577

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ runs:
- name: Check for Python3
id: python
run: |
echo '##[group]Check for Python3'
echo '::group::Check for Python3'
# we check version here just to execute `python3` with an argument
# on Windows, there is a `python3.exe` that is a proxy to trigger installation from app store
# command `which python3` finds that, but `python3 -V` does not return the version on stdout
Expand All @@ -174,7 +174,7 @@ runs:
echo "Python that creates venv: $PYTHON_BIN"
echo "PYTHON_BIN=$PYTHON_BIN" >> "$GITHUB_ENV"
echo "version=$("$PYTHON_BIN" -V)" >> "$GITHUB_OUTPUT"
echo '##[endgroup]'
echo '::endgroup::'
shell: bash

- name: Detect OS
Expand Down Expand Up @@ -208,7 +208,7 @@ runs:
env:
PIP_OPTIONS: ${{ steps.os.outputs.pip-options }}
run: |
echo '##[group]Create virtualenv'
echo '::group::Create virtualenv'
echo "Python that creates venv: $PYTHON_BIN"

echo "Creating virtual environment"
Expand Down Expand Up @@ -238,24 +238,24 @@ runs:
PYTHON_VENV="$("$PYTHON_VENV" -c 'import sys; print(sys.executable)')"
echo "Python in venv: $PYTHON_VENV"
echo "PYTHON_VENV=$PYTHON_VENV" >> "$GITHUB_ENV"
echo '##[endgroup]'
echo '::endgroup::'
shell: bash

- name: Install Python dependencies
run: |
echo '##[group]Install Python dependencies'
echo '::group::Install Python dependencies'
# make sure wheel is installed, which improves installing our dependencies
"$PYTHON_VENV" -m pip install wheel
"$PYTHON_VENV" -m pip install -r "$GITHUB_ACTION_PATH/../python/requirements.txt"
echo '##[endgroup]'
echo '::endgroup::'
shell: bash

- name: Publish Test Results
id: test-results
run: |
echo '##[group]Publish Test Results'
echo '::group::Publish Test Results'
"$PYTHON_VENV" "$GITHUB_ACTION_PATH/../python/publish_test_results.py"
echo '##[endgroup]'
echo '::endgroup::'
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
GITHUB_TOKEN_ACTOR: ${{ inputs.github_token_actor }}
Expand Down
Loading