From 67eb2ceb8c6e68ff81c873389771eaa6f73bdefd Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Fri, 24 May 2024 11:18:18 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Save=20conda-env=20on?= =?UTF-8?q?=20test=20and=20small=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Save the Conda environment to allow faster testing. Add Conda related things to gitignore. Fix ignored paths in copier.yml. ✅ Closes: #137 --- .gitignore | 3 +++ copier.yml | 3 --- test/runtests.jl | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9a8db360..f4c7916f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ *.rej docs/build/ Manifest.toml +docs/CondaPkg.toml +test/CondaPkg.toml +test/conda-env diff --git a/copier.yml b/copier.yml index bf084f69..c3c7760b 100644 --- a/copier.yml +++ b/copier.yml @@ -77,9 +77,6 @@ UseCirrusCI: _skip_if_exists: - "**/*.jl" - "!docs/make.jl" - - "**/*.md" - - "!docs/src/90-contributing.md" - - "!docs/src/90-developer.md" - "**/Project.toml" - CITATION.cff - LICENSE diff --git a/test/runtests.jl b/test/runtests.jl index f704c81e..dedb6a89 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,10 @@ +using Base: compilecache_pidfile_path, a_method_to_overwrite_in_test +# This is only useful for testing offline. It creates a local env to avoid redownloading things. +ENV["JULIA_CONDAPKG_ENV"] = joinpath(@__DIR__, "conda-env") +if isdir(ENV["JULIA_CONDAPKG_ENV"]) + ENV["JULIA_CONDAPKG_OFFLINE"] = true +end + using COPIERTemplate using Test