Skip to content

Commit

Permalink
Try forcing colour on in github actions output
Browse files Browse the repository at this point in the history
Mostly for pytest's benefit, but it wouldn't hurt if cmake also got a
bit prettier...
  • Loading branch information
craigds committed Oct 4, 2022
1 parent f6e4ff4 commit 433b74b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
KART_POSTGRES_URL: "postgresql://postgres:@localhost:5432/postgres"
KART_SQLSERVER_URL: "mssql://sa:PassWord1@localhost:1433/master"
KART_MYSQL_URL: "mysql://root:PassWord1@localhost:3306"
FORCE_COLOR: "YES"
services:
postgis:
image: postgis/postgis
Expand Down Expand Up @@ -270,6 +271,7 @@ jobs:
runs-on: windows-2019
env:
PY_VER: "3.7"
FORCE_COLOR: "YES"

# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
Expand Down Expand Up @@ -507,6 +509,7 @@ jobs:
PY_VER: "3.7"
HOMEBREW_CACHE: ${{ github.workspace }}/.cache/brew
HOMEBREW_NO_INSTALL_CLEANUP: "1"
FORCE_COLOR: "YES"
steps:
- uses: actions/checkout@v2

Expand All @@ -517,7 +520,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ env.PY_VER }}

- name: "python: pip cache"
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -778,6 +781,7 @@ jobs:
KART_POSTGRES_URL: "postgresql://postgres:@localhost:5432/postgres"
KART_SQLSERVER_URL: "mssql://sa:PassWord1@localhost:1433/master"
KART_MYSQL_URL: "mysql://root:PassWord1@localhost:3306"
FORCE_COLOR: "YES"
services:
postgis:
image: postgis/postgis
Expand Down Expand Up @@ -891,7 +895,6 @@ jobs:
run: |
ctest -V
#
# macOS via CMake
#
Expand Down Expand Up @@ -919,6 +922,7 @@ jobs:
PY_VER: "3.7"
HOMEBREW_CACHE: ${{ github.workspace }}/.cache/brew
HOMEBREW_NO_INSTALL_CLEANUP: "1"
FORCE_COLOR: "YES"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -1009,7 +1013,6 @@ jobs:
run: |
ctest -V
#
# Windows via CMake
#
Expand All @@ -1018,7 +1021,8 @@ jobs:
runs-on: windows-2019
continue-on-error: true
env:
PY_VER: "3.7" # needs to match the Windows job since we use its vendor archive.
PY_VER: "3.7" # needs to match the Windows job since we use its vendor archive.
FORCE_COLOR: "YES"

# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
Expand Down

0 comments on commit 433b74b

Please sign in to comment.