Merge pull request #345 from terraform-google-modules/ci-improvements
add colors to pytest output
This commit is contained in:
commit
305746ac97
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue