File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 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
3
3
4
4
inputs :
5
5
branch :
6
6
required : true
7
7
8
8
outputs :
9
9
report :
10
- description : " A raw memory usage report "
10
+ description : " Memory usage statistics "
11
11
value : ${{ steps.make_report.outputs.report }}
12
12
13
13
runs :
Original file line number Diff line number Diff line change @@ -18,22 +18,16 @@ jobs:
18
18
with :
19
19
submodules : recursive
20
20
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)
27
22
id : base
28
23
uses : ./.github/actions/memory-report
29
24
with :
30
25
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
35
29
with :
36
- submodules : recursive
30
+ branch : ${{ github.head_ref }}
37
31
38
32
- name : Compare
39
33
run : |
48
42
BASE_REPORT : ${{ steps.base.outputs.report }}
49
43
HEAD_REPORT : ${{ steps.head.outputs.report }}
50
44
51
-
45
+ # This in conjunction with create-or-update-comment allows us to only
46
+ # comment once and update it after
52
47
- name : Find Comment
53
48
uses : peter-evans/find-comment@v3
54
49
id : fc
Original file line number Diff line number Diff line change 1
1
import sys
2
2
from pathlib import Path
3
3
import pandas as pd
4
- from py_markdown_table .markdown_table import markdown_table
5
4
6
5
THIS_DIR = Path (__file__ ).parent .resolve ()
7
6
SAMPLE_DIR = THIS_DIR / 'samples'
Original file line number Diff line number Diff line change 1
1
pathlib
2
2
pandas
3
- py-markdown-table
You can’t perform that action at this time.
0 commit comments