add colors to pytest output

This commit is contained in:
Julio Castillo 2021-10-27 16:08:29 +02:00
parent 1a20df0a3e
commit c11031a377
2 changed files with 12 additions and 9 deletions

View File

@ -38,7 +38,7 @@ jobs:
terraform_version: 1.0.9
- name: Install dependencies
run: |
run: |
pip install -r tools/REQUIREMENTS.txt
- name: Boilerplate
@ -49,7 +49,7 @@ jobs:
- name: Terraform Linting Check
id: fmt
run: |
terraform fmt -recursive -check $GITHUB_WORKSPACE
terraform fmt -recursive -check -diff $GITHUB_WORKSPACE
- name: Check documentation
id: documentation

View File

@ -13,7 +13,7 @@
# limitations under the License.
name: 'Tests'
on:
on:
pull_request:
branches:
- master
@ -21,6 +21,9 @@ on:
- ci
- test
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
tests-environment:
runs-on: ubuntu-latest
@ -40,7 +43,7 @@ jobs:
- name: Set environment
run: |
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
- name: Install dependencies
run: |
@ -69,8 +72,8 @@ jobs:
- name: Set environment
run: |
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
- name: Install dependencies
run: |
pip install -r tests/requirements.txt
@ -98,8 +101,8 @@ jobs:
- name: Set environment
run: |
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
- name: Install dependencies
run: |
pip install -r tests/requirements.txt
@ -107,4 +110,4 @@ jobs:
- name: Run tests modules
id: test-modules
run: |
pytest -vv tests/modules
pytest -vv tests/modules