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'