mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-27 01:11:53 +08:00
testing
This commit is contained in:
@@ -5,11 +5,13 @@ import sys
|
|||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
try:
|
import pytablewriter
|
||||||
import pytablewriter
|
|
||||||
except:
|
# try:
|
||||||
subprocess.check_call(['pip', 'install', 'pytablewriter'])
|
# import pytablewriter
|
||||||
import pytablewriter
|
# except:
|
||||||
|
# subprocess.check_call(['pip', 'install', 'pytablewriter'])
|
||||||
|
# import pytablewriter
|
||||||
|
|
||||||
def ver(v):
|
def ver(v):
|
||||||
return v.split(".", 1)[1] if v.startswith("1.") else v
|
return v.split(".", 1)[1] if v.startswith("1.") else v
|
||||||
@@ -47,5 +49,6 @@ md = pytablewriter.MarkdownTableWriter()
|
|||||||
md.table_name = ''
|
md.table_name = ''
|
||||||
md.header_list = [''] + vers
|
md.header_list = [''] + vers
|
||||||
md.value_matrix = [[p] + [o[v] for v in vers] for p, o in sorted(by_payload.items())]
|
md.value_matrix = [[p] + [o[v] for v in vers] for p, o in sorted(by_payload.items())]
|
||||||
|
md.margin = 1
|
||||||
|
|
||||||
md.write_table()
|
md.write_table()
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
- run: cat artifacts/out*/*.txt > out.txt
|
- run: cat artifacts/out*/*.txt > out.txt
|
||||||
|
- run: pip install pytablewriter
|
||||||
- run: cat out.txt | python artifacts/results/results.py > matrix.md
|
- run: cat out.txt | python artifacts/results/results.py > matrix.md
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user