diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 0788175d..f70fb78a 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -58,10 +58,8 @@ jobs: c_compiler: cl env: - ALLURE_RESULTS_PATH: 'build/${{ matrix.os }}_${{ matrix.python-version }}/allure-results' - ALLURE_REPORTS_PATH: 'build/${{ matrix.os }}_${{ matrix.python-version }}/allure-reports' - COVERAGE_REPORT_PATH: 'build/${{ matrix.os }}_${{ matrix.python-version }}/python-coverage-report' - PYTHONPATH: .:build/python:$PYTHONPATH + ALLURE_RESULTS_PATH: 'build/allure-results' + COVERAGE_REPORT_PATH: 'build/python-coverage' steps: - uses: actions/checkout@v4 @@ -203,19 +201,17 @@ jobs: - name: "[Python] Run Unit tests" run: > - poetry run pytest + poetry run coverage run -m pytest --alluredir $ALLURE_RESULTS_PATH --color no - --cov $COVERAGE_REPORT_PATH - --cov-report html - name: "[Python] Create coverage report" - run: poetry run coverage report + run: poetry run coverage html --directory build/python-coverage - name: "[Python] Store coverage results" uses: actions/upload-artifact@v4 with: - name: upload-python-coverage-report + name: upload-python-coverage-report-${{ matrix.os }}_${{ matrix.python-version }} path: $COVERAGE_REPORT_PATH retention-days: 1 if-no-files-found: error @@ -226,6 +222,7 @@ jobs: name: upload-python-allure-report-${{ matrix.os }}_${{ matrix.python-version }} path: $ALLURE_RESULTS_PATH retention-days: 1 + if-no-files-found: error allure-report: name: "Generate Allure Report (Aggregated Suites)"