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

Use FORCE_COLOR to enable colored output in CI #36

Merged
merged 2 commits into from May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/app-build-verify.yml
Expand Up @@ -45,6 +45,9 @@ defaults:
run:
shell: bash

env:
FORCE_COLOR: "1"

jobs:
verify-app:
name: Verify App Build
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -6,13 +6,16 @@ on:
branches:
- main

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"

jobs:
pre-commit:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre-commit-update.yml
Expand Up @@ -25,6 +25,7 @@ permissions:
env:
BRANCH_NAME: "autoupdates/pre-commit"
CHANGENOTE_DIR: "./changes"
FORCE_COLOR: "1"

defaults:
run:
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
- name: Run pre-commit
# pre-commit returns non-zero when files are changed and fails the job
continue-on-error: true
run: pre-commit run --all-files --color=always
run: pre-commit run --all-files

- name: PR Needed?
id: pr
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/python-package-create.yml
Expand Up @@ -36,6 +36,9 @@ on:
description: "Name of the uploaded artifact; use for artifact retrieval."
value: ${{ jobs.package.outputs.artifact-name }}

env:
FORCE_COLOR: "1"

jobs:
package:
name: Create Python Package
Expand Down Expand Up @@ -71,11 +74,11 @@ jobs:

- name: Build wheels
if: inputs.build-subdirectory == ''
run: tox --colored yes -e package
run: tox -e package

- name: Build wheels from subdirectory
if: inputs.build-subdirectory != ''
run: tox --colored yes -e package -- ${{ inputs.build-subdirectory }}
run: tox -e package -- ${{ inputs.build-subdirectory }}

- name: Upload Package
uses: actions/upload-artifact@v3.1.2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/towncrier-run.yml
Expand Up @@ -28,6 +28,9 @@ defaults:
run:
shell: bash

env:
FORCE_COLOR: "1"

jobs:
towncrier:
name: Towncrier Checks
Expand Down Expand Up @@ -64,4 +67,4 @@ jobs:
run: python -m pip install ${{ inputs.tox-source }}

- name: Run towncrier check
run: tox --colored yes -e towncrier-check
run: tox -e towncrier-check