Skip to content

Commit

Permalink
Enable pytest colors without script -c -e "" wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Jul 31, 2023
1 parent d1b5633 commit 307e9fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 307e9fc

Please sign in to comment.