Skip to content

Commit 307e9fc

Browse files
committed
Enable pytest colors without script -c -e "" wrapper.
1 parent d1b5633 commit 307e9fc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ permissions:
1616
actions: write # Needed for skip-duplicate-jobs job
1717
contents: read
1818

19+
env:
20+
# Needed if we want colors in pytest output without tty and script -e -c wrapper
21+
PY_COLORS: "1"
22+
FORCE_COLOR: "1"
23+
1924
jobs:
2025
# Special job which skips duplicate jobs
2126
pre_job:
@@ -80,7 +85,7 @@ jobs:
8085
8186
- name: Run tox target
8287
run: |
83-
script -e -c "tox -e integration-storage"
88+
tox -e integration-storage
8489
env:
8590
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
8691
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ permissions:
1414
actions: write # Needed for skip-duplicate-jobs job
1515
contents: read
1616

17+
env:
18+
# Needed if we want colors in pytest output without tty and script -e -c wrapper
19+
PY_COLORS: "1"
20+
FORCE_COLOR: "1"
21+
1722
jobs:
1823
# Special job which skips duplicate jobs
1924
pre_job:

0 commit comments

Comments
 (0)