debug GitHub actions
parent
840d1d0e46
commit
b2fc3ff73e
|
@ -26,9 +26,9 @@ jobs:
|
|||
- macOS-latest
|
||||
- windows-latest
|
||||
arch:
|
||||
- x86
|
||||
# - x86
|
||||
- x64
|
||||
- aarch64
|
||||
# - aarch64
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: julia-actions/setup-julia@v1
|
||||
|
|
|
@ -15,7 +15,7 @@ The function Settings() will create a set of settings for the train run calculat
|
|||
# Example
|
||||
```jldoctest
|
||||
julia> my_settings = Settings() # will generate default settings
|
||||
Settings(mass_point, :distance, 20, 3, running_time, julia_dict, ".")
|
||||
Settings(mass_point, :distance, 20, 3, running_time, :dataframe)
|
||||
```
|
||||
"""
|
||||
function Settings(file="DEFAULT")
|
||||
|
|
|
@ -14,25 +14,25 @@ settings = Dict()
|
|||
@testset "load data" begin
|
||||
|
||||
println("testing load train data")
|
||||
push!(trains, :freight => @time Train("test/data/trains/freight.yaml"))
|
||||
push!(trains, :local => @time Train("test/data/trains/local.yaml"))
|
||||
push!(trains, :longdistance => @time Train("test/data/trains/longdistance.yaml"))
|
||||
push!(trains, :freight => @time Train("data/trains/freight.yaml"))
|
||||
push!(trains, :local => @time Train("data/trains/local.yaml"))
|
||||
push!(trains, :longdistance => @time Train("data/trains/longdistance.yaml"))
|
||||
|
||||
println("testing load path data")
|
||||
push!(paths, :const => @time Path("test/data/paths/const.yaml"))
|
||||
push!(paths, :slope => @time Path("test/data/paths/slope.yaml"))
|
||||
push!(paths, :speed => @time Path("test/data/paths/speed.yaml"))
|
||||
push!(paths, :realworld => @time Path("test/data/paths/realworld.yaml"))
|
||||
push!(paths, :const => @time Path("data/paths/const.yaml"))
|
||||
push!(paths, :slope => @time Path("data/paths/slope.yaml"))
|
||||
push!(paths, :speed => @time Path("data/paths/speed.yaml"))
|
||||
push!(paths, :realworld => @time Path("data/paths/realworld.yaml"))
|
||||
|
||||
println("testing load settings data")
|
||||
push!(settings, "default" => @time Settings())
|
||||
push!(settings, "poi" => @time Settings("test/data/settings/points_of_interest.yaml"))
|
||||
push!(settings, "drivingcourse" => @time Settings("test/data/settings/driving_course.yaml"))
|
||||
push!(settings, "everything" => @time Settings("test/data/settings/everything.yaml"))
|
||||
push!(settings, "strip" => @time Settings("test/data/settings/strip.yaml"))
|
||||
push!(settings, "time" => @time Settings("test/data/settings/time.yaml"))
|
||||
push!(settings, "timestrip" => @time Settings("test/data/settings/time_strip.yaml"))
|
||||
push!(settings, "velocity" => @time Settings("test/data/settings/velocity.yaml"))
|
||||
push!(settings, "poi" => @time Settings("data/settings/points_of_interest.yaml"))
|
||||
push!(settings, "drivingcourse" => @time Settings("data/settings/driving_course.yaml"))
|
||||
push!(settings, "everything" => @time Settings("data/settings/everything.yaml"))
|
||||
push!(settings, "strip" => @time Settings("data/settings/strip.yaml"))
|
||||
push!(settings, "time" => @time Settings("data/settings/time.yaml"))
|
||||
push!(settings, "timestrip" => @time Settings("data/settings/time_strip.yaml"))
|
||||
push!(settings, "velocity" => @time Settings("data/settings/velocity.yaml"))
|
||||
|
||||
@test typeof(first(paths)[2]) == Path
|
||||
@test typeof(first(settings)[2]) == Settings
|
||||
|
|
Loading…
Reference in New Issue