Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 2cf1fc8

Browse files
committed
only compile stats for a single repo in CI
1 parent 2c723de commit 2cf1fc8

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/test_arch.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ jobs:
4343
cd ..
4444
4545
- name: "Compare repositories"
46-
run: ./tests/ci_compare_repo.sh
46+
run: |
47+
git clone https://github.com/nim-works/nimskull.git /tmp/nimskull
48+
./build/bin/code_forensics \
49+
/tmp/nimskull \
50+
--filter-script=scripts/code_filter.py \
51+
--branch=devel \
52+
--logfile=nimskull.log \
53+
--outfile=nimskull.sqlite
4754
4855
- name: "Run all stats"
4956
run: |

scripts/all_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"line_category",
4343
"code_authorship",
4444
"commit_message_length",
45-
"author_ridgeline",
45+
# "author_ridgeline",
4646
]
4747

4848
sub_args = {}

scripts/commit_message_length.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
def parse_args(args=sys.argv[1:]):
1414
parser = init_parser()
15-
add_title_args(parser, None)
1615

1716
parser.add_argument(
1817
"--mode",

scripts/top_comitters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
def parse_args(args=sys.argv[1:]):
1111
parser = init_parser()
12-
add_title_args(parser, "Top comitter distribution")
1312
return parse_args_with_config(parser, args)
1413

1514

@@ -30,7 +29,7 @@ def impl(args):
3029
fig, ax = plt.subplots(figsize=(16, 16))
3130
ax.plot(df["count"], df["name"])
3231
ax.grid(True)
33-
ax.set_title(args.title)
32+
ax.set_title(args.title or "Top comitter distribution")
3433
ax.set_xlabel("Commit count")
3534
ax.set_ylabel("contributor name and commit count")
3635
fig.savefig(args.outfile, bbox_inches="tight", dpi=300)

0 commit comments

Comments
 (0)