mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-21 22:50:46 +08:00
testing
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user