Skip to content

Commit b7be8be

Browse files
author
Tsotne Tabidze
committed
Parallelize integration tests
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
1 parent 17bfa61 commit b7be8be

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install dependencies
5353
run: make install-python-ci-dependencies
5454
- name: Test python
55-
run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
55+
run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
5656
- name: Upload coverage to Codecov
5757
uses: codecov/codecov-action@v1
5858
with:

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Install dependencies
6464
run: make install-python-ci-dependencies
6565
- name: Test python
66-
run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
66+
run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v1
6969
with:

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: make install-python-ci-dependencies
2424
- name: Test Python
25-
run: make test-python
25+
run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests
2626
- name: Upload coverage to Codecov
2727
uses: codecov/codecov-action@v1
2828
with:

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ install-python:
5353
python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver
5454

5555
test-python:
56-
FEAST_TELEMETRY=False pytest -n 4 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests
56+
FEAST_TELEMETRY=False pytest -n 8 sdk/python/tests
57+
58+
test-python-integration:
59+
FEAST_TELEMETRY=False pytest -n 8 --integration sdk/python/tests
5760

5861
format-python:
5962
# Sort

0 commit comments

Comments
 (0)