Skip to content

Commit

Permalink
feat(#245): has_release_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Dec 4, 2024
1 parent 7d92859 commit 4726f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sr-data/src/sr_data/steps/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def main(repos, out):
frame.at[idx, "w_jobs"] = tjobs
frame.at[idx, "w_oss"] = len(set(oss))
frame.at[idx, "w_steps"] = steps
frame.at[idx, "w_has_releases"] = releases
frame.at[idx, "has_workflow_release"] = releases
frame.to_csv(out, index=False)
logger.info(f"Saved repositories to {out}")

Expand Down
7 changes: 4 additions & 3 deletions sr-data/src/tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ def test_collects_workflows_for_all(self):
)
frame = pd.read_csv(path)
self.assertTrue(
all(col in frame.columns for col in
["workflows", "w_jobs", "w_oss", "w_steps",
"w_has_releases"]),
all(
col in frame.columns for col in
["workflows", "w_jobs", "w_oss", "w_steps", "has_workflow_release"]
),
f"Frame {frame.columns} doesn't have expected columns"
)

Expand Down

0 comments on commit 4726f89

Please sign in to comment.