Skip to content

Commit 075287b

Browse files
authored
Add durations to list the slowest tests (#1881)
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent efeea6c commit 075287b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 2 additions & 2 deletions
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_USAGE=False IS_TEST=True pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
55+
run: FEAST_USAGE=False IS_TEST=True pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration --durations=5
5656
- name: Upload coverage to Codecov
5757
uses: codecov/codecov-action@v1
5858
with:
@@ -63,6 +63,6 @@ jobs:
6363
fail_ci_if_error: true
6464
verbose: true
6565
- name: Benchmark python
66-
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data
66+
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data --durations=5
6767
- name: Upload Benchmark Artifact to S3
6868
run: aws s3 cp --recursive .benchmarks s3://feast-ci-pytest-benchmarks

.github/workflows/pr_integration_tests.yml

Lines changed: 2 additions & 2 deletions
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_USAGE=False IS_TEST=True pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration
66+
run: FEAST_USAGE=False IS_TEST=True pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration --durations=5
6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v1
6969
with:
@@ -74,6 +74,6 @@ jobs:
7474
fail_ci_if_error: true
7575
verbose: true
7676
- name: Benchmark python
77-
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data
77+
run: FEAST_USAGE=False IS_TEST=True pytest --verbose --color=yes sdk/python/tests --integration --benchmark --benchmark-autosave --benchmark-save-data --durations=5
7878
- name: Upload Benchmark Artifact to S3
7979
run: aws s3 cp --recursive .benchmarks s3://feast-ci-pytest-benchmarks

0 commit comments

Comments
 (0)