Merge branch 'master' into lcaggio/bqml
This commit is contained in:
commit
406921c7d7
|
@ -31,7 +31,7 @@ env:
|
||||||
TF_VERSION: 1.3.9
|
TF_VERSION: 1.3.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
examples:
|
examples-blueprints:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -54,6 +54,14 @@ jobs:
|
||||||
terraform_version: ${{ env.TF_VERSION }}
|
terraform_version: ${{ env.TF_VERSION }}
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
|
- name: Configure provider cache
|
||||||
|
run: |
|
||||||
|
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
echo 'disable_checkpoint = true' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
mkdir -p $HOME/.terraform.d/plugin-cache
|
||||||
|
|
||||||
# avoid conflicts with user-installed providers on local machines
|
# avoid conflicts with user-installed providers on local machines
|
||||||
- name: Pin provider versions
|
- name: Pin provider versions
|
||||||
run: |
|
run: |
|
||||||
|
@ -66,7 +74,52 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
|
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
|
||||||
pip install -r tests/requirements.txt
|
pip install -r tests/requirements.txt
|
||||||
pytest -vv tests/examples
|
pytest -vv -k blueprints/ tests/examples
|
||||||
|
|
||||||
|
examples-modules:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Config auth
|
||||||
|
run: |
|
||||||
|
echo '{"type": "service_account", "project_id": "test-only"}' \
|
||||||
|
| tee -a $GOOGLE_APPLICATION_CREDENTIALS
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: 'tests/requirements.txt'
|
||||||
|
|
||||||
|
- name: Set up Terraform
|
||||||
|
uses: hashicorp/setup-terraform@v2
|
||||||
|
with:
|
||||||
|
terraform_version: ${{ env.TF_VERSION }}
|
||||||
|
terraform_wrapper: false
|
||||||
|
|
||||||
|
- name: Configure provider cache
|
||||||
|
run: |
|
||||||
|
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
echo 'disable_checkpoint = true' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
mkdir -p $HOME/.terraform.d/plugin-cache
|
||||||
|
|
||||||
|
# avoid conflicts with user-installed providers on local machines
|
||||||
|
- name: Pin provider versions
|
||||||
|
run: |
|
||||||
|
for f in $(find . -name versions.tf); do
|
||||||
|
sed -i 's/>=\(.*# tftest\)/=\1/g' $f;
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Run tests on documentation examples
|
||||||
|
id: pytest
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
pytest -vv -k modules/ tests/examples
|
||||||
|
|
||||||
blueprints:
|
blueprints:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -91,6 +144,14 @@ jobs:
|
||||||
terraform_version: ${{ env.TF_VERSION }}
|
terraform_version: ${{ env.TF_VERSION }}
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
|
- name: Configure provider cache
|
||||||
|
run: |
|
||||||
|
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
echo 'disable_checkpoint = true' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
mkdir -p $HOME/.terraform.d/plugin-cache
|
||||||
|
|
||||||
# avoid conflicts with user-installed providers on local machines
|
# avoid conflicts with user-installed providers on local machines
|
||||||
- name: Pin provider versions
|
- name: Pin provider versions
|
||||||
run: |
|
run: |
|
||||||
|
@ -128,6 +189,14 @@ jobs:
|
||||||
terraform_version: ${{ env.TF_VERSION }}
|
terraform_version: ${{ env.TF_VERSION }}
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
|
- name: Configure provider cache
|
||||||
|
run: |
|
||||||
|
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
echo 'disable_checkpoint = true' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
mkdir -p $HOME/.terraform.d/plugin-cache
|
||||||
|
|
||||||
# avoid conflicts with user-installed providers on local machines
|
# avoid conflicts with user-installed providers on local machines
|
||||||
- name: Pin provider versions
|
- name: Pin provider versions
|
||||||
run: |
|
run: |
|
||||||
|
@ -165,6 +234,14 @@ jobs:
|
||||||
terraform_version: ${{ env.TF_VERSION }}
|
terraform_version: ${{ env.TF_VERSION }}
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
|
- name: Configure provider cache
|
||||||
|
run: |
|
||||||
|
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
echo 'disable_checkpoint = true' \
|
||||||
|
| tee -a $HOME/.terraformrc
|
||||||
|
mkdir -p $HOME/.terraform.d/plugin-cache
|
||||||
|
|
||||||
# avoid conflicts with user-installed providers on local machines
|
# avoid conflicts with user-installed providers on local machines
|
||||||
- name: Pin provider versions
|
- name: Pin provider versions
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue