diff --git a/.github/workflows/SnoopCompile.yml b/.github/workflows/SnoopCompile.yml index 8e62ab6..ebfe8d3 100644 --- a/.github/workflows/SnoopCompile.yml +++ b/.github/workflows/SnoopCompile.yml @@ -18,11 +18,11 @@ jobs: with: version: ${{ matrix.julia-version }} - name: Install dependencies - run: julia --project=@. -e 'using Pkg; Pkg.instantiate();' + run: julia --project -e 'using Pkg; Pkg.instantiate();' - name : Add SnoopCompile and current package - run: julia -e 'using Pkg; Pkg.add(PackageSpec(url = "https://github.com/aminya/SnoopCompile.jl", rev ="packageSnooper")); Pkg.develop(PackageSpec(; path=pwd()));' -# - name: Install Test dependencies -# run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()' + run: julia -e 'using Pkg; Pkg.add("SnoopCompile"); Pkg.develop(PackageSpec(; path=pwd()));' + - name: Install Test dependencies + run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()' - name: Generating precompile files run: julia --project=@. -e 'include("deps/SnoopCompile/snoopCompile.jl")' - name: Running Benchmark @@ -30,7 +30,7 @@ jobs: # https://github.com/marketplace/actions/create-pull-request - name: Create Pull Request - uses: peter-evans/create-pull-request@v2-beta + uses: peter-evans/create-pull-request@v2 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update precompile_*.jl file diff --git a/deps/SnoopCompile/snoopBenchmark.jl b/deps/SnoopCompile/snoopBenchmark.jl index 9a5ce65..b32c90c 100644 --- a/deps/SnoopCompile/snoopBenchmark.jl +++ b/deps/SnoopCompile/snoopBenchmark.jl @@ -2,12 +2,12 @@ using SnoopCompile println("loading infer benchmark") -@snoopiBenchBot "MatLang" using MatLang +@snoopiBench "MatLang" using MatLang println("examples infer benchmark") -@snoopiBenchBot "MatLang" begin +@snoopiBench "MahtLang" begin using MatLang examplePath = joinpath(dirname(dirname(pathof(MatLang))), "examples") # include(joinpath(examplePath,"Language_Fundamentals", "usage_Entering_Commands.jl")) @@ -16,4 +16,6 @@ println("examples infer benchmark") end -@snoopiBenchBot "MatLang" +println("tests infer benchmark") + +@snoopiBench "MatLang"