Skip to content

Commit

Permalink
chore: 🤖 Save conda-env on test and small fixes
Browse files Browse the repository at this point in the history
Save the Conda environment to allow faster testing.
Add Conda related things to gitignore.
Fix ignored paths in copier.yml.

✅ Closes: #137
  • Loading branch information
abelsiqueira committed May 24, 2024
1 parent 22e031d commit 67eb2ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
*.rej
docs/build/
Manifest.toml
docs/CondaPkg.toml
test/CondaPkg.toml
test/conda-env
3 changes: 0 additions & 3 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 67eb2ce

Please sign in to comment.