From a4146b376083c8599692665169746119ce7847e2 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Wed, 25 Jun 2025 12:55:46 +0200 Subject: [PATCH 1/2] Reuse coverage artifact from build workflow --- .github/workflows/pages.yml | 13 +++++++++++-- README.md | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b59359b4a..14cc6878c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,8 +1,10 @@ name: Pages on: - push: - pull_request: + workflow_run: + workflows: ["Build application"] + types: + - completed workflow_dispatch: permissions: @@ -110,6 +112,13 @@ jobs: with: name: scoreboard path: ./scoreboard/ + - name: Download coverage artifact + uses: actions/download-artifact@v4 + with: + name: cov-report + path: ./coverage/ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/README.md b/README.md index a3e9d8147..39f807927 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ # Parallel Programming Course Welcome to the Parallel Programming Course! For more detailed documentation and resources, please visit documentation pages: [en](https://learning-process.github.io/parallel_programming_course/en/), [ru](https://learning-process.github.io/parallel_programming_course/ru/). Course scoreboard is available [here](https://learning-process.github.io/parallel_programming_course/scoreboard/) +Coverage report is available [here](https://learning-process.github.io/parallel_programming_course/coverage/) ### Parallel programming technologies: The following parallel programming technologies are considered in practice: From 9030149bd16d6960be5998828c564c2859c4b3bc Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Wed, 25 Jun 2025 13:26:49 +0200 Subject: [PATCH 2/2] Trigger pages workflow after perf --- .github/workflows/main.yml | 5 +++++ .github/workflows/pages.yml | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67b9b7992..509a88fa0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,3 +36,8 @@ jobs: - mac - windows uses: ./.github/workflows/perf.yml + + pages: + needs: + - perf + uses: ./.github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 14cc6878c..1afa5d83d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,10 +1,7 @@ name: Pages on: - workflow_run: - workflows: ["Build application"] - types: - - completed + workflow_call: workflow_dispatch: permissions: @@ -117,8 +114,6 @@ jobs: with: name: cov-report path: ./coverage/ - github-token: ${{ secrets.GITHUB_TOKEN }} - run-id: ${{ github.event.workflow_run.id }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: