debug GitHub actions

development
Martin Scheidt 2022-05-12 17:37:00 +02:00
parent 840d1d0e46
commit b2fc3ff73e
3 changed files with 17 additions and 17 deletions

View File

@ -26,9 +26,9 @@ jobs:
- macOS-latest - macOS-latest
- windows-latest - windows-latest
arch: arch:
- x86 # - x86
- x64 - x64
- aarch64 # - aarch64
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1 - uses: julia-actions/setup-julia@v1

View File

@ -15,7 +15,7 @@ The function Settings() will create a set of settings for the train run calculat
# Example # Example
```jldoctest ```jldoctest
julia> my_settings = Settings() # will generate default settings 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") function Settings(file="DEFAULT")

View File

@ -14,25 +14,25 @@ settings = Dict()
@testset "load data" begin @testset "load data" begin
println("testing load train data") println("testing load train data")
push!(trains, :freight => @time Train("test/data/trains/freight.yaml")) push!(trains, :freight => @time Train("data/trains/freight.yaml"))
push!(trains, :local => @time Train("test/data/trains/local.yaml")) push!(trains, :local => @time Train("data/trains/local.yaml"))
push!(trains, :longdistance => @time Train("test/data/trains/longdistance.yaml")) push!(trains, :longdistance => @time Train("data/trains/longdistance.yaml"))
println("testing load path data") println("testing load path data")
push!(paths, :const => @time Path("test/data/paths/const.yaml")) push!(paths, :const => @time Path("data/paths/const.yaml"))
push!(paths, :slope => @time Path("test/data/paths/slope.yaml")) push!(paths, :slope => @time Path("data/paths/slope.yaml"))
push!(paths, :speed => @time Path("test/data/paths/speed.yaml")) push!(paths, :speed => @time Path("data/paths/speed.yaml"))
push!(paths, :realworld => @time Path("test/data/paths/realworld.yaml")) push!(paths, :realworld => @time Path("data/paths/realworld.yaml"))
println("testing load settings data") println("testing load settings data")
push!(settings, "default" => @time Settings()) push!(settings, "default" => @time Settings())
push!(settings, "poi" => @time Settings("test/data/settings/points_of_interest.yaml")) push!(settings, "poi" => @time Settings("data/settings/points_of_interest.yaml"))
push!(settings, "drivingcourse" => @time Settings("test/data/settings/driving_course.yaml")) push!(settings, "drivingcourse" => @time Settings("data/settings/driving_course.yaml"))
push!(settings, "everything" => @time Settings("test/data/settings/everything.yaml")) push!(settings, "everything" => @time Settings("data/settings/everything.yaml"))
push!(settings, "strip" => @time Settings("test/data/settings/strip.yaml")) push!(settings, "strip" => @time Settings("data/settings/strip.yaml"))
push!(settings, "time" => @time Settings("test/data/settings/time.yaml")) push!(settings, "time" => @time Settings("data/settings/time.yaml"))
push!(settings, "timestrip" => @time Settings("test/data/settings/time_strip.yaml")) push!(settings, "timestrip" => @time Settings("data/settings/time_strip.yaml"))
push!(settings, "velocity" => @time Settings("test/data/settings/velocity.yaml")) push!(settings, "velocity" => @time Settings("data/settings/velocity.yaml"))
@test typeof(first(paths)[2]) == Path @test typeof(first(paths)[2]) == Path
@test typeof(first(settings)[2]) == Settings @test typeof(first(settings)[2]) == Settings