You've already forked coreutils-tracking
mirror of
https://github.com/uutils/coreutils-tracking.git
synced 2026-06-10 16:12:04 -07:00
Updated CI to save SVG graphs.
This commit is contained in:
@@ -143,21 +143,21 @@ jobs:
|
||||
with:
|
||||
default_author: github_actions
|
||||
message: "Refresh the GNU graph"
|
||||
add: gnu-results.png
|
||||
add: gnu-results.svg
|
||||
|
||||
- name: Add & Commit the busybox graph
|
||||
uses: EndBug/add-and-commit@v9.1.4
|
||||
with:
|
||||
default_author: github_actions
|
||||
message: "Refresh the busybox graph"
|
||||
add: busybox-results.png
|
||||
add: busybox-results.svg
|
||||
|
||||
- name: Add & Commit the toybox graph
|
||||
uses: EndBug/add-and-commit@v9.1.4
|
||||
with:
|
||||
default_author: github_actions
|
||||
message: "Refresh the toybox graph"
|
||||
add: toybox-results.png
|
||||
add: toybox-results.svg
|
||||
|
||||
- name: Add & Commit the individual size graph
|
||||
uses: EndBug/add-and-commit@v9.1.4
|
||||
@@ -171,4 +171,4 @@ jobs:
|
||||
with:
|
||||
default_author: github_actions
|
||||
message: "Refresh the size graph"
|
||||
add: size-results.png
|
||||
add: size-results.svg
|
||||
|
||||
@@ -11,15 +11,14 @@ import pandas as pd
|
||||
|
||||
df = pd.read_json(sys.argv[1], orient="index")
|
||||
|
||||
df.index = pd.to_datetime(df.index, utc=True)
|
||||
|
||||
Path("individual-size-results").mkdir(exist_ok=True)
|
||||
|
||||
|
||||
for name in df.sizes.values[0]:
|
||||
# Check if the name exists in each dictionary
|
||||
sizes = df.sizes.map(lambda v: v.get(name))
|
||||
|
||||
for name, series in df["sizes"].apply(pd.Series).items():
|
||||
# Filter out None values which indicate missing data for 'name'
|
||||
sizes = sizes[sizes.notnull()]
|
||||
sizes = series.dropna()
|
||||
|
||||
if not sizes.empty:
|
||||
print(name)
|
||||
@@ -30,6 +29,6 @@ for name in df.sizes.values[0]:
|
||||
fig.autofmt_xdate()
|
||||
plt.margins(0.01)
|
||||
plt.savefig(f"individual-size-results/{name}.svg", format="svg", dpi=199, bbox_inches="tight")
|
||||
plt.clf()
|
||||
plt.close(fig)
|
||||
else:
|
||||
print(f"Warning: No data found for '{name}'")
|
||||
|
||||
Reference in New Issue
Block a user