From a7a5f1e36a777e47960a0ce31c76807449935978 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Thu, 31 Oct 2024 00:57:30 -0400 Subject: [PATCH] ci: fix invalidations CI --- .github/workflows/Invalidations.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index 66c86a362..e221a7c75 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -20,14 +20,36 @@ jobs: with: version: '1' - uses: actions/checkout@v4 - - uses: julia-actions/julia-buildpkg@v1 + - name: "Install Dependencies" + run: | + import Pkg + Pkg.Registry.update() + # Install packages present in subdirectories + dev_pks = Pkg.PackageSpec[] + for path in ("lib/SciMLJacobianOperators", "lib/BracketingNonlinearSolve", "lib/NonlinearSolveBase", "lib/SimpleNonlinearSolve", "lib/NonlinearSolveFirstOrder", "lib/NonlinearSolveSpectralMethods", "lib/NonlinearSolveQuasiNewton") + push!(dev_pks, Pkg.PackageSpec(; path)) + end + Pkg.develop(dev_pks) + Pkg.instantiate() + shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} - uses: julia-actions/julia-invalidations@v1 id: invs_pr - uses: actions/checkout@v4 with: ref: ${{ github.event.repository.default_branch }} - - uses: julia-actions/julia-buildpkg@v1 + - name: "Install Dependencies" + run: | + import Pkg + Pkg.Registry.update() + # Install packages present in subdirectories + dev_pks = Pkg.PackageSpec[] + for path in ("lib/SciMLJacobianOperators", "lib/BracketingNonlinearSolve", "lib/NonlinearSolveBase", "lib/SimpleNonlinearSolve", "lib/NonlinearSolveFirstOrder", "lib/NonlinearSolveSpectralMethods", "lib/NonlinearSolveQuasiNewton") + push!(dev_pks, Pkg.PackageSpec(; path)) + end + Pkg.develop(dev_pks) + Pkg.instantiate() + shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} - uses: julia-actions/julia-invalidations@v1 id: invs_default