@@ -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
package_name :
39
39
fi
40
40
echo "packagename=$PACKAGENAME" >> $GITHUB_OUTPUT
41
41
if [[ '${{ inputs.test_script }}' == '' ]]; then
42
- TESTSCRIPT="using ${PACKAGENAME}"
42
+ TESTSCRIPT="import ${PACKAGENAME}"
43
43
else
44
44
TESTSCRIPT="${{ inputs.test_script }}"
45
45
fi
@@ -59,18 +59,18 @@ runs:
59
59
- name : Load package on branch
60
60
id : invs
61
61
run : |
62
- using SnoopCompileCore
62
+ using SnoopCompileCore: @snoopr
63
63
invalidations = @snoopr begin ${{ steps.info.outputs.testscript }} end
64
64
65
- using SnoopCompile
65
+ using SnoopCompile: SnoopCompile, filtermod, invalidation_trees, uinvalidated
66
66
inv_owned = length(filtermod(${{ steps.info.outputs.packagename }}, invalidation_trees(invalidations)))
67
67
inv_total = length(uinvalidated(invalidations))
68
68
inv_deps = inv_total - inv_owned
69
69
70
70
@show inv_total, inv_deps
71
71
72
72
# Report invalidations summary:
73
- using PrettyTables # needed for `report_invalidations` to be defined
73
+ import PrettyTables # needed for `report_invalidations` to be defined
74
74
SnoopCompile.report_invalidations(;
75
75
invalidations,
76
76
process_filename = x -> last(split(x, ".julia/packages/")),
0 commit comments