-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,10 @@ jobs: | |
uses: ./.github/actions/memory-report | ||
with: | ||
branch: ${{ github.head_ref }} | ||
# TODO: Comment back in | ||
#- name: Generate memory usage report (main) | ||
# uses: ./.github/actions/memory-report | ||
# with: | ||
# branch: ${{ github.base_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 | ||
|
@@ -36,21 +35,12 @@ jobs: | |
|
||
- name: Compare | ||
run: | | ||
# TODO: Must be the ones generated ofc, but for now just static to test | ||
python3 -m pip install -r scripts/ci/reports/requirements.txt | ||
python3 scripts/ci/reports/parse-reports.py \ | ||
scripts/ci/reports/test/update.txt \ | ||
scripts/ci/reports/test/main.txt \ | ||
build/memory-report-${{ github.head_ref }}.txt \ | ||
build/memory-report-${{ github.base_ref }}.txt \ | ||
report | ||
- name: Comment | ||
uses: gavv/[email protected] | ||
with: | ||
commit: ${{ github.event.pull_request.head.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: report.txt | ||
comment-title: "Memory usage report" | ||
comment-message: "Here is an overview of how your pull request impacts the memory usage compared to the main branch:" | ||
- name: Comment test table | ||
- name: Comment memory usage tables | ||
uses: GrantBirki/[email protected] | ||
with: | ||
file: report.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters