Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankoehler authored Dec 4, 2024
1 parent c5d23f2 commit ca11681
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)"
Expand Down

0 comments on commit ca11681

Please sign in to comment.