From 500043a7539f6f35471c1a94f9475fe398525d37 Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:06:28 +0530 Subject: [PATCH] MINOR: fix path for cli e2e coverage configuration (#14078) * fix path for coverage configuration * debug * fix lin no * fix lin no * remove sed * revert debug changes --- .github/workflows/py-cli-e2e-tests.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/py-cli-e2e-tests.yml b/.github/workflows/py-cli-e2e-tests.yml index e9eca681bca..c1475922b19 100644 --- a/.github/workflows/py-cli-e2e-tests.yml +++ b/.github/workflows/py-cli-e2e-tests.yml @@ -155,14 +155,13 @@ jobs: echo "import os" >> $SITE_CUSTOMIZE_PATH echo "try:" >> $SITE_CUSTOMIZE_PATH echo " import coverage" >> $SITE_CUSTOMIZE_PATH - echo " os.environ['COVERAGE_PROCESS_START'] = 'ingestion/.coveragerc'" >> $SITE_CUSTOMIZE_PATH + echo " os.environ['COVERAGE_PROCESS_START'] = 'ingestion/pyproject.toml'" >> $SITE_CUSTOMIZE_PATH echo " coverage.process_startup()" >> $SITE_CUSTOMIZE_PATH echo "except ImportError:" >> $SITE_CUSTOMIZE_PATH echo " pass" >> $SITE_CUSTOMIZE_PATH - sed -i "5i concurrency = multiprocessing" ingestion/.coveragerc - coverage run --rcfile ingestion/.coveragerc -a --branch -m pytest -c ingestion/setup.cfg --junitxml=ingestion/junit/test-results-$E2E_TEST.xml --ignore=ingestion/tests/unit/source ingestion/tests/cli_e2e/test_cli_$E2E_TEST.py - coverage combine --data-file=.coverage.$E2E_TEST --rcfile=ingestion/.coveragerc --keep -a .coverage* - coverage report --rcfile ingestion/.coveragerc --data-file .coverage.$E2E_TEST || true + coverage run --rcfile ingestion/pyproject.toml -a --branch -m pytest -c ingestion/pyproject.toml --junitxml=ingestion/junit/test-results-$E2E_TEST.xml --ignore=ingestion/tests/unit/source ingestion/tests/cli_e2e/test_cli_$E2E_TEST.py + coverage combine --data-file=.coverage.$E2E_TEST --rcfile=ingestion/pyproject.toml --keep -a .coverage* + coverage report --rcfile ingestion/pyproject.toml --data-file .coverage.$E2E_TEST || true - name: Upload coverage artifact for Python tests if: matrix.e2e-test == 'python' && steps.python-e2e-test.outcome == 'success'