From 307e9fc890c1d1769a43a9ed3faf24f7519ccb29 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 31 Jul 2023 18:49:51 +0200 Subject: [PATCH] Enable pytest colors without script -c -e "" wrapper. --- .github/workflows/integration-tests.yml | 7 ++++++- .github/workflows/main.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1183e7bd04..9f61f1ba3a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -16,6 +16,11 @@ permissions: actions: write # Needed for skip-duplicate-jobs job contents: read +env: + # Needed if we want colors in pytest output without tty and script -e -c wrapper + PY_COLORS: "1" + FORCE_COLOR: "1" + jobs: # Special job which skips duplicate jobs pre_job: @@ -80,7 +85,7 @@ jobs: - name: Run tox target run: | - script -e -c "tox -e integration-storage" + tox -e integration-storage env: AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3f70249b6..5be22cefa6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,11 @@ permissions: actions: write # Needed for skip-duplicate-jobs job contents: read +env: + # Needed if we want colors in pytest output without tty and script -e -c wrapper + PY_COLORS: "1" + FORCE_COLOR: "1" + jobs: # Special job which skips duplicate jobs pre_job: