mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Testing - Update GH test compare handling #124
Extend workflow to work on master Extend the retention days for summary for 2 weeks
This commit is contained in:
parent
328ffa1679
commit
5c242e8d9d
@ -9,6 +9,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||||
@ -422,7 +425,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-windows-x64
|
name: results-windows-x64
|
||||||
path: install/results
|
path: install/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
test-windows-clang-x64:
|
test-windows-clang-x64:
|
||||||
name: Test on Windows with Clang (x64)
|
name: Test on Windows with Clang (x64)
|
||||||
@ -476,7 +479,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-windows-clang-x64
|
name: results-windows-clang-x64
|
||||||
path: install/results
|
path: install/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
test-macos-x64:
|
test-macos-x64:
|
||||||
name: Test on macOS (x64)
|
name: Test on macOS (x64)
|
||||||
@ -530,7 +533,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-macos-x64
|
name: results-macos-x64
|
||||||
path: install/bin/results
|
path: install/bin/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
test-macos-gcc-x64:
|
test-macos-gcc-x64:
|
||||||
name: Test on macOS with GCC (x64)
|
name: Test on macOS with GCC (x64)
|
||||||
@ -585,7 +588,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-macos-gcc-x64
|
name: results-macos-gcc-x64
|
||||||
path: install/bin/results
|
path: install/bin/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
test-linux-clang-x64:
|
test-linux-clang-x64:
|
||||||
name: Test on Linux with Clang (x64)
|
name: Test on Linux with Clang (x64)
|
||||||
@ -648,7 +651,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-linux-clang-x64
|
name: results-linux-clang-x64
|
||||||
path: install/bin/results
|
path: install/bin/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
test-linux-gcc-x64:
|
test-linux-gcc-x64:
|
||||||
name: Test on Linux with GCC (x64)
|
name: Test on Linux with GCC (x64)
|
||||||
@ -711,7 +714,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: results-linux-gcc-x64
|
name: results-linux-gcc-x64
|
||||||
path: install/bin/results
|
path: install/bin/results
|
||||||
retention-days: 7
|
retention-days: 15
|
||||||
|
|
||||||
summarize:
|
summarize:
|
||||||
name: Summarize and Send PR Message
|
name: Summarize and Send PR Message
|
||||||
@ -754,7 +757,7 @@ jobs:
|
|||||||
echo "Fetching latest run ID for workflow: $workflow_name on branch: $target_branch"
|
echo "Fetching latest run ID for workflow: $workflow_name on branch: $target_branch"
|
||||||
response=$(curl -s \
|
response=$(curl -s \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
"https://api.github.com/repos/${{ github.repository }}/actions/runs?branch=$target_branch&status=success&event=pull_request")
|
"https://api.github.com/repos/${{ github.repository }}/actions/runs?branch=$target_branch")
|
||||||
latest_run_id=$(echo "$response" | jq -r --arg workflow_name "$workflow_name" '.workflow_runs[] | select(.name==$workflow_name) | .id' | head -n 1)
|
latest_run_id=$(echo "$response" | jq -r --arg workflow_name "$workflow_name" '.workflow_runs[] | select(.name==$workflow_name) | .id' | head -n 1)
|
||||||
echo "latest_run_id=$latest_run_id" >> $GITHUB_ENV
|
echo "latest_run_id=$latest_run_id" >> $GITHUB_ENV
|
||||||
|
|
||||||
@ -924,11 +927,3 @@ jobs:
|
|||||||
install/bin/results/current/**/diff-*.log
|
install/bin/results/current/**/diff-*.log
|
||||||
install/bin/results/current/**/summary.html
|
install/bin/results/current/**/summary.html
|
||||||
install/bin/results/current/**/tests.log
|
install/bin/results/current/**/tests.log
|
||||||
|
|
||||||
- name: Summarize results
|
|
||||||
run: |
|
|
||||||
echo "Summarizing results..."
|
|
||||||
|
|
||||||
- name: Send PR message
|
|
||||||
run: |
|
|
||||||
echo "Sending PR message..."
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user