This commit is contained in:
Chris Frohoff
2022-03-22 01:19:40 -07:00
parent 76585c5ab6
commit 53f560d22d
2 changed files with 9 additions and 5 deletions
+8 -5
View File
@@ -5,11 +5,13 @@ import sys
import subprocess
try:
import pytablewriter
except:
subprocess.check_call(['pip', 'install', 'pytablewriter'])
import pytablewriter
import pytablewriter
# try:
# import pytablewriter
# except:
# subprocess.check_call(['pip', 'install', 'pytablewriter'])
# import pytablewriter
def ver(v):
return v.split(".", 1)[1] if v.startswith("1.") else v
@@ -47,5 +49,6 @@ md = pytablewriter.MarkdownTableWriter()
md.table_name = ''
md.header_list = [''] + vers
md.value_matrix = [[p] + [o[v] for v in vers] for p, o in sorted(by_payload.items())]
md.margin = 1
md.write_table()
+1
View File
@@ -88,6 +88,7 @@ jobs:
with:
path: artifacts
- run: cat artifacts/out*/*.txt > out.txt
- run: pip install pytablewriter
- run: cat out.txt | python artifacts/results/results.py > matrix.md
- uses: actions/upload-artifact@v3
with: