Skip to content

Commit a82dbda

Browse files
authored
Merge pull request #55 from erlingrj/test
Test add static data
2 parents c68b72d + 38029de commit a82dbda

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

.github/actions/memory-report/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Generate memory usage report
2-
description: Generate a memory usage report for a specific branch
1+
name: Fetch memory usage statistics
2+
description: Fetch memory usage statistics from compiled tests for a specific branch
33

44
inputs:
55
branch:
66
required: true
77

88
outputs:
99
report:
10-
description: "A raw memory usage report"
10+
description: "Memory usage statistics"
1111
value: ${{ steps.make_report.outputs.report }}
1212

1313
runs:

.github/workflows/memory.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,16 @@ jobs:
1818
with:
1919
submodules: recursive
2020

21-
- name: Generate memory usage report (current branch)
22-
id: head
23-
uses: ./.github/actions/memory-report
24-
with:
25-
branch: ${{ github.head_ref }}
26-
- name: Generate memory usage report (target branch)
21+
- name: Generate memory usage report (base branch)
2722
id: base
2823
uses: ./.github/actions/memory-report
2924
with:
3025
branch: ${{ github.base_ref }}
31-
32-
# To get back to the PR branch
33-
- name: Checkout
34-
uses: actions/checkout@v3
26+
- name: Generate memory usage report (head branch) # I.e. the PR branch
27+
id: head
28+
uses: ./.github/actions/memory-report
3529
with:
36-
submodules: recursive
30+
branch: ${{ github.head_ref }}
3731

3832
- name: Compare
3933
run: |
@@ -48,7 +42,8 @@ jobs:
4842
BASE_REPORT: ${{ steps.base.outputs.report }}
4943
HEAD_REPORT: ${{ steps.head.outputs.report }}
5044

51-
45+
# This in conjunction with create-or-update-comment allows us to only
46+
# comment once and update it after
5247
- name: Find Comment
5348
uses: peter-evans/find-comment@v3
5449
id: fc

scripts/ci/reports/parse-reports.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
from pathlib import Path
33
import pandas as pd
4-
from py_markdown_table.markdown_table import markdown_table
54

65
THIS_DIR = Path(__file__).parent.resolve()
76
SAMPLE_DIR = THIS_DIR / 'samples'

scripts/ci/reports/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
pathlib
22
pandas
3-
py-markdown-table

0 commit comments

Comments
 (0)