-
Notifications
You must be signed in to change notification settings - Fork 286
33 lines (32 loc) · 1.07 KB
/
ci-analysis.yaml
File metadata and controls
33 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# CI Performance Analysis
#
# Analyses the most recent successful runs of the main build-and-test
# workflow (pull-request-checks.yaml) and publishes a Markdown summary
# of the slowest jobs, test suites, and individual tests.
#
# Results are visible in the GitHub Actions UI:
# 1. Go to the "Actions" tab of the repository.
# 2. Select the "CI Performance Analysis" workflow on the left.
# 3. Click the most recent run, then the "analyse" job.
# 4. Expand the "Summary" section at the top of the job page.
#
# The underlying script is scripts/ci_analysis.py. Run it locally with
# --help for additional options (e.g. --runs, --top, --log-dir).
name: CI Performance Analysis
on:
push:
branches: [develop]
jobs:
analyse:
runs-on: ubuntu-latest
permissions:
actions: read
steps:
- uses: actions/checkout@v6
- name: Analyse recent CI runs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/ci_analysis.py \
--runs 5 --top 20 --markdown --quiet \
>> "$GITHUB_STEP_SUMMARY"