-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from eWaterCycle/julia-tests
Add tests for RemoteBmi.jl
- Loading branch information
Showing
88 changed files
with
5,334 additions
and
2,024 deletions.
There are no files selected for viewing
This file contains 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 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
15 changes: 6 additions & 9 deletions
15
RemoteBMI.jl/.github/workflows/Test.yml → .github/workflows/julia-test.yml
This file contains 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,35 +1,32 @@ | ||
name: Test | ||
name: Julia test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: ["*"] | ||
|
||
paths: | ||
- "RemoteBMI.jl/**" | ||
- .github/workflows/julia-test.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/ReusableTest.yml | ||
uses: ./.github/workflows/JuliaReusableTest.yml | ||
with: | ||
os: ${{ matrix.os }} | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
allow_failure: ${{ matrix.allow_failure }} | ||
run_codecov: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }} | ||
secrets: | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- "1.6" | ||
- "lts" | ||
- "1" | ||
os: | ||
- ubuntu-latest | ||
#- macOS-latest | ||
#- windows-latest | ||
arch: | ||
- x64 | ||
allow_failure: [false] | ||
|
This file contains 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 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 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 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 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,7 +1,12 @@ | ||
*.jl.*.cov | ||
*.jl.cov | ||
*.jl.mem | ||
*.rej | ||
.DS_Store | ||
.benchmarkci | ||
Manifest.toml | ||
benchmark/*.json | ||
coverage | ||
docs/build/ | ||
*.rej | ||
env | ||
node_modules |
This file contains 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 |
---|---|---|
|
@@ -60,7 +60,7 @@ representative at an online or offline event. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
reported to the community leaders responsible for enforcement: | ||
`[email protected]`. | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
|
This file contains 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 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 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 |
---|---|---|
|
@@ -4,34 +4,18 @@ using Documenter | |
DocMeta.setdocmeta!(RemoteBMI, :DocTestSetup, :(using RemoteBMI); recursive = true) | ||
|
||
const page_rename = Dict("developer.md" => "Developer docs") # Without the numbers | ||
|
||
function nice_name(file) | ||
file = replace(file, r"^[0-9]*-" => "") | ||
if haskey(page_rename, file) | ||
return page_rename[file] | ||
end | ||
return splitext(file)[1] |> x -> replace(x, "-" => " ") |> titlecase | ||
end | ||
const numbered_pages = [ | ||
file for | ||
file in readdir(joinpath(@__DIR__, "src")) if file != "index.md" && splitext(file)[2] == ".md" | ||
] | ||
|
||
makedocs(; | ||
modules = [RemoteBMI], | ||
doctest = true, | ||
linkcheck = false, # Rely on Lint.yml/lychee for the links | ||
authors = "Stefan Verhoeven <[email protected]> and contributors", | ||
authors = "", | ||
repo = "https://github.com/eWaterCycle/RemoteBMI.jl/blob/{commit}{path}#{line}", | ||
sitename = "RemoteBMI.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = true, | ||
canonical = "https://eWaterCycle.github.io/RemoteBMI.jl", | ||
assets = ["assets/style.css"], | ||
), | ||
pages = [ | ||
"Home" => "index.md" | ||
[ | ||
nice_name(file) => file for | ||
file in readdir(joinpath(@__DIR__, "src")) if file != "index.md" && splitext(file)[2] == ".md" | ||
] | ||
], | ||
format = Documenter.HTML(; canonical = "https://eWaterCycle.github.io/RemoteBMI.jl"), | ||
pages = ["index.md"; numbered_pages], | ||
) | ||
|
||
deploydocs(; repo = "github.com/eWaterCycle/RemoteBMI.jl", push_preview = true) | ||
deploydocs(; repo = "github.com/eWaterCycle/RemoteBMI.jl") |
This file contains 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 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 |
---|---|---|
|
@@ -6,4 +6,3 @@ CurrentModule = RemoteBMI | |
|
||
Documentation for [RemoteBMI](https://github.com/eWaterCycle/RemoteBMI.jl). | ||
|
||
|
This file contains 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 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.