This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch run_tests_py312
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 307e9fc890c1d1769a43a9ed3faf24f7519ccb29
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Mon Jul 31 18:49:51 2023 +0200

    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 1183e7bd0..9f61f1ba3 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 e3f70249b..5be22cefa 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:

Reply via email to