@@ -3,7 +3,7 @@ description: 'Evaluate number of invalidations'
3
3
4
4
inputs :
5
5
test_script :
6
- description : ' Script to test for invalidations. Defaults to `using Package`'
6
+ description : ' Script to test for invalidations. Defaults to `import Package`'
7
7
required : false
8
8
default : ' '
9
9
25
25
PACKAGENAME=${REPONAME%.jl}
26
26
echo "packagename=$PACKAGENAME" >> $GITHUB_OUTPUT
27
27
if [[ '${{ inputs.test_script }}' == '' ]]; then
28
- TESTSCRIPT="using ${PACKAGENAME}"
28
+ TESTSCRIPT="import ${PACKAGENAME}"
29
29
else
30
30
TESTSCRIPT=${{ inputs.test_script }}
31
31
fi
@@ -45,18 +45,18 @@ runs:
45
45
- name : Load package on branch
46
46
id : invs
47
47
run : |
48
- using SnoopCompileCore
48
+ using SnoopCompileCore: @snoopr
49
49
invalidations = @snoopr begin ${{ steps.info.outputs.testscript }} end
50
50
51
- using SnoopCompile
51
+ using SnoopCompile: SnoopCompile, uinvalidated
52
52
inv_owned = length(filtermod(${{ steps.info.outputs.packagename }}, invalidation_trees(invalidations)))
53
53
inv_total = length(uinvalidated(invalidations))
54
54
inv_deps = inv_total - inv_owned
55
55
56
56
@show inv_total, inv_deps
57
57
58
58
# Report invalidations summary:
59
- using PrettyTables # needed for `report_invalidations` to be defined
59
+ import PrettyTables # needed for `report_invalidations` to be defined
60
60
SnoopCompile.report_invalidations(;
61
61
invalidations,
62
62
process_filename = x -> last(split(x, ".julia/packages/")),
0 commit comments