disable parallel execution of tests and plugin cache (#887)

This commit is contained in:
Ludovico Magnocavallo 2022-10-14 19:52:38 +02:00 committed by GitHub
parent b39abd2389
commit 680eb656cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 50 deletions

View File

@ -54,15 +54,6 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false
- name: Config Terraform plugin cache
run: |
echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc
mkdir --parents ~/.terraform.d/plugin-cache
- name: Initialize providers
run: |
terraform init
# avoid conflicts with user-installed providers on local machines
- name: Pin provider versions
run: |
@ -75,7 +66,7 @@ jobs:
run: |
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
pip install -r tests/requirements.txt
pytest -vv --numprocesses auto --dist loadgroup tests/examples
pytest -vv tests/examples
examples:
runs-on: ubuntu-latest
@ -98,15 +89,6 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false
- name: Config Terraform plugin cache
run: |
echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc
mkdir --parents ~/.terraform.d/plugin-cache
- name: Initialize providers
run: |
terraform init
# avoid conflicts with user-installed providers on local machines
- name: Pin provider versions
run: |
@ -119,7 +101,7 @@ jobs:
run: |
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
pip install -r tests/requirements.txt
pytest -vv --numprocesses auto --dist loadgroup tests/blueprints
pytest -vv tests/blueprints
modules:
runs-on: ubuntu-latest
@ -142,15 +124,6 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false
- name: Config Terraform plugin cache
run: |
echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc
mkdir --parents ~/.terraform.d/plugin-cache
- name: Initialize providers
run: |
terraform init
# avoid conflicts with user-installed providers on local machines
- name: Pin provider versions
run: |
@ -163,7 +136,7 @@ jobs:
run: |
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
pip install -r tests/requirements.txt
pytest -vv --numprocesses auto --dist loadgroup tests/modules
pytest -vv tests/modules
fast:
runs-on: ubuntu-latest
@ -186,15 +159,6 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false
- name: Config Terraform plugin cache
run: |
echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc
mkdir --parents ~/.terraform.d/plugin-cache
- name: Initialize providers
run: |
terraform init
# avoid conflicts with user-installed providers on local machines
- name: Pin provider versions
run: |
@ -207,4 +171,4 @@ jobs:
run: |
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
pip install -r tests/requirements.txt
pytest -vv --numprocesses auto --dist loadgroup tests/fast
pytest -vv tests/fast

View File

@ -17,19 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.36.0" # tftest
version = ">= 4.36.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.36.0" # tftest
}
# used in modules
archive = {
source = "hashicorp/archive"
}
# used in fast
local = {
source = "hashicorp/local"
version = ">= 4.36.0"
}
}
}