Skip to content

Memory report ci

Memory report ci #40

Workflow file for this run

name: Memory usage report
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
ci:
name: Report memory usage
runs-on: ubuntu-latest
steps:
# To get the potential changes to CI
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Generate memory usage report (current branch)
uses: ./.github/actions/memory-report
with:
branch: ${{ github.head_ref }}
- name: Generate memory usage report (target branch)
uses: ./.github/actions/memory-report
with:
branch: ${{ github.base_ref }}
# To get back to the PR branch
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Compare
run: |
python3 -m pip install -r scripts/ci/reports/requirements.txt
python3 scripts/ci/reports/parse-reports.py \
build/memory-report-${{ github.head_ref }}.txt \
build/memory-report-${{ github.base_ref }}.txt \
report
- name: Comment memory usage tables
uses: GrantBirki/[email protected]
with:
file: report.md