Skip to content

Commit 9181a78

Browse files
committed
Add builtin_items updater to whats_left job
Corresponds to RustPython/rustpython.github.io#81.
1 parent 9e7d291 commit 9181a78

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/cron-ci.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
schedule:
3-
- cron: '0 0 * * 6'
3+
- cron: "0 0 * * 6"
44
workflow_dispatch:
55
push:
66
paths:
@@ -34,7 +34,7 @@ jobs:
3434
run: python scripts/cargo-llvm-cov.py
3535
continue-on-error: true
3636
- name: Run cargo-llvm-cov with Python test suite.
37-
run: cargo llvm-cov --no-report run -- -m test -u all --slowest --fail-env-changed
37+
run: cargo llvm-cov --no-report run -- -m test -u all --slowest --fail-env-changed
3838
continue-on-error: true
3939
- name: Prepare code coverage data
4040
run: cargo llvm-cov report --lcov --output-path='codecov.lcov'
@@ -109,6 +109,23 @@ jobs:
109109
rm ./_data/whats_left/modules.csv
110110
echo -e "module" > ./_data/whats_left/modules.csv
111111
cat ./_data/whats_left.temp | grep "(entire module)" | cut -d ' ' -f 1 | sort >> ./_data/whats_left/modules.csv
112+
awk -f - ./_data/whats_left.temp > ./_data/whats_left/builtin_items.csv <<'EOF'
113+
BEGIN {
114+
OFS=","
115+
print "builtin,name,is_inherited"
116+
}
117+
/^# builtin items/ { in_section=1; next }
118+
/^$/ { if (in_section) exit }
119+
in_section {
120+
split($1, a, ".")
121+
rest = ""
122+
idx = index($0, " ")
123+
if (idx > 0) {
124+
rest = substr($0, idx+1)
125+
}
126+
print a[1], $1, rest
127+
}
128+
EOF
112129
git add -A
113130
if git -c user.name="Github Actions" -c user.email="[email protected]" commit -m "Update what is left results" --author="$GITHUB_ACTOR"; then
114131
git push

0 commit comments

Comments
 (0)