-
Notifications
You must be signed in to change notification settings - Fork 17
Reorg CI + project #172
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
Merged
Merged
Reorg CI + project #172
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bc5daea
use workspaces
icweaver 7a0e004
remove JuliaAstro/Spectra.jl
icweaver 8fde755
not needed with workspaces
icweaver 390bf15
add more test info
icweaver 39eba87
use ParallelTestRunner.jl
icweaver 6dd6343
split out release and dev tests
icweaver 7b748a4
Merge branch 'main' into reorg-ci-project
icweaver 9f9b70e
put back Spectra.jl [skip ci]
icweaver 3c23556
use reusable workflow
icweaver 0b0bb02
typo
icweaver 8358548
is a name needed?
icweaver 9850f7b
yup
icweaver c7e1670
Update dev instructions
icweaver 022ba10
re-org tests
icweaver 9f9f214
dial back test frequency for released versions
icweaver 50aa114
spectra
icweaver a4866b8
typo
icweaver 2693808
Merge branch 'main' into reorg-ci-project
icweaver 8711ab9
Update test/_packages.jl
icweaver 5ec3dd6
Merge branch 'main' into reorg-ci-project
icweaver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Test JuliaAstro (dev) | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| schedule: | ||
| - cron: '15 2 * * *' # 2:15 AM UTC every day | ||
|
|
||
| jobs: | ||
| test-dev: | ||
| uses: ./.github/workflows/CI.yml | ||
| with: | ||
| test_args: "--verbose packages_dev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Test JuliaAstro (release) | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| schedule: | ||
| - cron: '15 2 * * 1' # 2:15 AM UTC every Monday | ||
|
|
||
| jobs: | ||
| test-release: | ||
| uses: ./.github/workflows/CI.yml | ||
| with: | ||
| test_args: "--verbose packages_release" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| name = "JuliaAstroDocs" | ||
| uuid = "5ba9df79-bc07-467f-bade-66a1d49082bd" | ||
|
|
||
| [workspace] | ||
| projects = ["test", "docs"] | ||
|
|
||
| [deps] | ||
| TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9" | ||
|
|
||
| [compat] | ||
| TypedTables = "1.4.6" | ||
| julia = "1.6" | ||
| julia = "1.10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| [deps] | ||
| InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | ||
| JuliaAstroDocs = "5ba9df79-bc07-467f-bade-66a1d49082bd" | ||
| ParallelTestRunner = "d3525ed8-44d0-4b2c-a655-542cee43accc" | ||
| Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
| Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
|
||
| [sources] | ||
| JuliaAstroDocs = {path = ".."} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| function test_packages(mode) | ||
| @testset "Compatibility - $(mode)" begin | ||
| for package in packages_juliaastro | ||
| p_name = package.name | ||
| @info string("Adding: ", p_name) | ||
| @testset "$(p_name)" begin | ||
| if mode == :release | ||
| if p_name == "Spectra.jl" | ||
| # TODO: Register | ||
| @test Pkg.add(url="https://github.com/JuliaAstro/Spectra.jl") == nothing | ||
| else | ||
| @test Pkg.add(chopsuffix(p_name, ".jl")) == nothing | ||
| end | ||
| else | ||
| @test Pkg.add(url=package.repo) == nothing | ||
| end | ||
| end | ||
| end | ||
|
|
||
| @testset "Precompilation" begin | ||
| @test Pkg.precompile(; strict=true) == nothing | ||
| end | ||
|
|
||
| @testset "Package loading" begin | ||
| for package in packages_juliaastro | ||
| p_name = package.name | ||
| @info string("Loading: ", p_name) | ||
| @testset "$(p_name)" begin | ||
| @test eval(quote | ||
| @time_imports using $(Symbol(chopsuffix(p_name, ".jl"))) | ||
| end) == nothing | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| include("_packages.jl") | ||
|
|
||
| test_packages(:dev) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| include("_packages.jl") | ||
|
|
||
| test_packages(:release) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.