Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestGeneratedPkg with the HEAD version of the template #451

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/TestGeneratedPkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,16 @@ jobs:
"PackageName" => "Guldasta",
"PackageUUID" => string(UUIDs.uuid4()),
"PackageOwner" => "Bagicha",
"AuthorName" => "Mali",
"AuthorEmail" => "[email protected]"
"Authors" => "Mali <[email protected]>"
);
BestieTemplate.generate(
pkgdir(BestieTemplate),
"tmp/Guldasta.jl",
data;
defaults = true,
quiet = true,
vcs_ref="HEAD"
);
BestieTemplate.generate("tmp/Guldasta.jl", data; defaults = true, quiet = true);
'
- name: Run the tests in the generated package
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning].

## [Unreleased]

### Fixed

- The TestGeneratedPkg workflow now runs the latest unreleased version of the pkg (#450)
- The tests of the generated package correctly include the `test-*.jl` files (#452)

## [0.10.0] - 2024-09-10

Breaking notice:
Expand Down
2 changes: 1 addition & 1 deletion template/test/runtests.jl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for (root, dirs, files) in walkdir(@__DIR__)
end
title = titlecase(replace(splitext(file[6:end])[1], "-" => " "))
@testset "$title" begin
include(title)
include(file)
end
end
end
Expand Down
Loading