diff --git a/.github/workflows/Eval.yml b/.github/workflows/Eval.yml index c5103c37..e569102a 100644 --- a/.github/workflows/Eval.yml +++ b/.github/workflows/Eval.yml @@ -56,4 +56,4 @@ jobs: Pkg.instantiate(); Pkg.add("Test"); Pkg.add(path="./PkgEval.jl")' - julia --project=. ./test/FMI2/eval.jl + julia --project=. ./test/eval.jl diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 1c21c87e..0155d9b6 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -1,36 +1,14 @@ -name: Formatter - +name: Format suggestions on: pull_request: - push: - branches: - - 'main' - tags: '*' - + # this argument is not required if you don't use the `suggestion-label` input + types: [ opened, reopened, synchronize, labeled, unlabeled ] jobs: - build: + code-style: runs-on: ubuntu-latest steps: - - name: "Check out repository" - uses: actions/checkout@v4 - - - name: "Set up Julia" - uses: julia-actions/setup-julia@v2 + - uses: julia-actions/julia-format@v3 with: - version: '1' - arch: x64 + version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1') + suggestion-label: 'format-suggest' # leave this unset or empty to show suggestions for all PRs - - name: Install JuliaFormatter and format - run: julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter")); using JuliaFormatter; format(".", verbose=true)' - - - name: Format check - run: | - julia -e ' - out = Cmd(`git diff`) |> read |> String - if out == "" - exit(0) - else - @error "Some files are not formatted! Please use the SciMLStyle to format your files!" - write(stdout, out) - exit(1) - end' \ No newline at end of file diff --git a/test/sim_CS.jl b/test/sim_CS.jl index ee34ad4c..66d93213 100644 --- a/test/sim_CS.jl +++ b/test/sim_CS.jl @@ -72,5 +72,4 @@ end # reference values from Simulation in Dymola2020x (Dassl, default settings) @test [solution.values.saveval[1]...] == [0.5, 0.0] @test sum(abs.([solution.values.saveval[end]...] - [0.613371, 0.188633])) < 0.2 -unloadFMU(fmu) - +unloadFMU(fmu) \ No newline at end of file