Skip to content

Commit 32452b1

Browse files
committed
Update SnoopCompile bot
1 parent 5d2a9b2 commit 32452b1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/SnoopCompile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
with:
1919
version: ${{ matrix.julia-version }}
2020
- name: Install dependencies
21-
run: julia --project=@. -e 'using Pkg; Pkg.instantiate();'
21+
run: julia --project -e 'using Pkg; Pkg.instantiate();'
2222
- name : Add SnoopCompile and current package
23-
run: julia -e 'using Pkg; Pkg.add(PackageSpec(url = "https://github.com/aminya/SnoopCompile.jl", rev ="packageSnooper")); Pkg.develop(PackageSpec(; path=pwd()));'
24-
# - name: Install Test dependencies
25-
# run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()'
23+
run: julia -e 'using Pkg; Pkg.add("SnoopCompile"); Pkg.develop(PackageSpec(; path=pwd()));'
24+
- name: Install Test dependencies
25+
run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()'
2626
- name: Generating precompile files
2727
run: julia --project=@. -e 'include("deps/SnoopCompile/snoopCompile.jl")'
2828
- name: Running Benchmark
2929
run: julia --project=@. -e 'include("deps/SnoopCompile/snoopBenchmark.jl")'
3030

3131
# https://github.com/marketplace/actions/create-pull-request
3232
- name: Create Pull Request
33-
uses: peter-evans/create-pull-request@v2-beta
33+
uses: peter-evans/create-pull-request@v2
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
commit-message: Update precompile_*.jl file

deps/SnoopCompile/snoopBenchmark.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ using SnoopCompile
22

33
println("loading infer benchmark")
44

5-
@snoopiBenchBot "MatLang" using MatLang
5+
@snoopiBench "MatLang" using MatLang
66

77

88
println("examples infer benchmark")
99

10-
@snoopiBenchBot "MatLang" begin
10+
@snoopiBench "MahtLang" begin
1111
using MatLang
1212
examplePath = joinpath(dirname(dirname(pathof(MatLang))), "examples")
1313
# include(joinpath(examplePath,"Language_Fundamentals", "usage_Entering_Commands.jl"))
@@ -16,4 +16,6 @@ println("examples infer benchmark")
1616
end
1717

1818

19-
@snoopiBenchBot "MatLang"
19+
println("tests infer benchmark")
20+
21+
@snoopiBench "MatLang"

0 commit comments

Comments
 (0)