From 9a630d4d860dd6d36645187e23f28feb0dfaa9a0 Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Sun, 4 Jul 2021 15:45:55 -0700 Subject: [PATCH] Parallelize integration tests (#1684) * Parallelize integration tests Signed-off-by: Tsotne Tabidze * Update the usage flag Signed-off-by: Tsotne Tabidze --- .github/workflows/integration_tests.yml | 2 +- .github/workflows/pr_integration_tests.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- Makefile | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index d82d882ff2..322ee0b6e5 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -52,7 +52,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index 240d87069e..26ac821ac2 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -63,7 +63,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 58d2a7c0a7..7b480a8609 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test Python - run: make test-python + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/Makefile b/Makefile index 475d729e9e..b18c5bca2e 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,10 @@ install-python: python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver test-python: - FEAST_TELEMETRY=False pytest -n 4 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests + FEAST_USAGE=False pytest -n 8 sdk/python/tests + +test-python-integration: + FEAST_USAGE=False pytest -n 8 --integration sdk/python/tests format-python: # Sort