Enable parallel tests

This commit is contained in:
Julio Castillo
2023-04-23 00:46:46 +02:00
parent b097d297ff
commit 20ccf7416f
2 changed files with 6 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ jobs:
TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }}
- name: Run tests on documentation examples
run: pytest -vv -k blueprints/ tests/examples
run: pytest -vv -n4 -k blueprints/ tests/examples
examples-modules:
runs-on: ubuntu-latest
@@ -87,7 +87,7 @@ jobs:
TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }}
- name: Run tests on documentation examples
run: pytest -vv -k modules/ tests/examples
run: pytest -vv -n4 -k modules/ tests/examples
blueprints:
runs-on: ubuntu-latest
@@ -102,7 +102,7 @@ jobs:
TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }}
- name: Run tests environments
run: pytest -vv tests/blueprints
run: pytest -vv -n4 tests/blueprints
modules:
runs-on: ubuntu-latest
@@ -117,7 +117,7 @@ jobs:
TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }}
- name: Run tests modules
run: pytest -vv tests/modules
run: pytest -vv -n4 tests/modules
fast:
runs-on: ubuntu-latest
@@ -132,4 +132,4 @@ jobs:
TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }}
- name: Run tests on FAST stages
run: pytest -vv tests/fast
run: pytest -vv -n4 tests/fast

View File

@@ -4,3 +4,4 @@ tftest>=1.8.1
marko>=1.2.2
deepdiff>=6.2.3
python-hcl2>=4.3.0
pytest-xdist>=3.1.0