Skip to content

Commit

Permalink
Update publish-reports-github-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankoehler committed Dec 13, 2024
1 parent bcb0050 commit 0aa42a3
Showing 1 changed file with 40 additions and 9 deletions.
49 changes: 40 additions & 9 deletions .github/workflows/publish-reports-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ jobs:
# uses: actions/upload-artifact/merge@v4
# with:
# name: merged-allure-reports
# pattern: upload-python-allure-report-*
# pattern: python-*-tests-allure-report-ubuntu*
# # delete-merged: true
# retention-days: 1

- name: "Download and merge Allure coverage artifacts"
uses: actions/download-artifact@v4
with:
pattern: upload-python-allure-report-*
pattern: python-*-tests-allure-report-*
merge-multiple: true
path: build/allure-results # destination

- name: "Set up JDK (for Allure)"
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -92,18 +92,49 @@ jobs:
python-coverage-report:
name: "Generate Coverage Report (Aggregated Suites)"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: "Download and merge Python coverage artifacts"

- name: "[🐍] Download and merge 📦 artifacts"
uses: actions/download-artifact@v4
with:
pattern: upload-python-coverage-report-*
pattern: python-dist-ubuntu-latest*
merge-multiple: true
path: pycov # destination
path: dist # destination

- name: "[🐍] Unpack Source 📦"
run: |
tar xvfz dist/klayout_pex*.tar.gz --strip-components=1
- name: "[🐍] Download and merge coverage artifacts"
uses: actions/download-artifact@v4
with:
pattern: python-*-tests-coverage-report-ubuntu-*
merge-multiple: false
path: pycov-databases # destination

- name: "Display structure of downloaded files"
run: ls -R pycov-databases

- name: "[🐍] Setup python"
id: setup-python
uses: actions/setup-python@v5

- name: "[🐍] Install dependencies"
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Display structure of downloaded files
- name: "[🐍] Combine coverage reports"
run: |
coverage combine pycov-databases/*/python-coverage.sqlite
- name: "[🐍] Create coverage report"
run: |
coverage html --directory pycov --data-file=.coverage
- name: "Display structure of coverage report"
run: ls -R pycov

- name: "Publish test report"
Expand Down

0 comments on commit 0aa42a3

Please sign in to comment.