Skip to content

Commit

Permalink
fixes TestLatest.yml (#20)
Browse files Browse the repository at this point in the history
* fixes TestLatest.yml

fixes deprecated keyword

* added julia-caching

* added formatter and reformatted

---------

Co-authored-by: Simon Exner <[email protected]>
  • Loading branch information
0815Creeper and 0815Creeper authored Dec 23, 2024
1 parent a49b78e commit 846b2ef
Show file tree
Hide file tree
Showing 11 changed files with 813 additions and 554 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/Formatter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Format suggestions
on:
pull_request:
# this argument is not required if you don't use the `suggestion-label` input
types: [ opened, reopened, synchronize, labeled, unlabeled ]
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v3
with:
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

6 changes: 5 additions & 1 deletion .github/workflows/TestLTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}

# Set up cache
# Set up julia-cache
- name: Set up julia-cache
uses: julia-actions/cache@v2

# Set up cache
- name: "Set up cache"
uses: actions/cache@v4
env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/TestLatest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}

# Set up cache
# Set up julia-cache
- name: Set up julia-cache
uses: julia-actions/cache@v2

# Set up cache
- name: "Set up cache"
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -66,4 +70,4 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: lcov.info
files: lcov.info
2 changes: 1 addition & 1 deletion src/FMISensitivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SciMLSensitivity
import SciMLSensitivity: ForwardDiff
import SciMLSensitivity: FiniteDiff
import SciMLSensitivity: ReverseDiff
import SciMLSensitivity: Zygote
import SciMLSensitivity: Zygote

import FMIBase.ChainRulesCore
using FMIBase.ChainRulesCore: ZeroTangent, NoTangent, @thunk
Expand Down
5 changes: 3 additions & 2 deletions src/hotfixes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ import FMIBase: FMUEvaluationOutput
#grad_mut(av::AbstractVector) = invoke(grad_mut, Tuple{Any}, av)
grad_mut(av::FMUEvaluationOutput) = invoke(grad_mut, Tuple{Any}, av)
#grad_mut(c::Zygote.Context, av::AbstractVector) = invoke(grad_mut, Tuple{Zygote.Context, Any}, c, av)
grad_mut(c::Zygote.Context, av::FMUEvaluationOutput) = invoke(grad_mut, Tuple{Zygote.Context, Any}, c, av)
#grad_mut(av::AbstractVector) = []
grad_mut(c::Zygote.Context, av::FMUEvaluationOutput) =
invoke(grad_mut, Tuple{Zygote.Context,Any}, c, av)
#grad_mut(av::AbstractVector) = []
Loading

0 comments on commit 846b2ef

Please sign in to comment.