Skip to content

Commit

Permalink
fixes for Example.yml (#151)
Browse files Browse the repository at this point in the history
* fixes for Example.yml

* formatted
  • Loading branch information
0815Creeper committed Sep 16, 2024
1 parent d2ad96b commit 838ba9b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: julia --project=examples/ examples/jupyter-src/${{ matrix.file-name }}.jl

- name: "auto-commit (retry on merge)"
if: success() && github.event_name != 'pull_request' && github.branch == 'main'
if: success() && github.event_name != 'pull_request' && github.ref_name == 'main'
uses: nick-fields/retry@v3
env:
CI_COMMIT_MESSAGE: jupyter-example-${{ matrix.os }}-${{ matrix.file-name }}-${{ matrix.julia-version }}-${{ matrix.julia-arch }}-${{ matrix.experimental }}[${{ github.ref }}]
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- run: julia -e 'using PlutoSliderServer; PlutoSliderServer.export_directory("examples/pluto-src")'

- name: "auto-commit (retry on merge)"
if: success() && github.event_name != 'pull_request' && github.branch == 'main'
if: success() && github.event_name != 'pull_request' && github.ref_name == 'main'
uses: nick-fields/retry@v3
env:
CI_COMMIT_MESSAGE: pluto-examples[${{ github.ref }}]
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
call-docu:
needs: [jupyter, pluto]
if: github.event_name != 'pull_request' && github.branch == 'main'
if: github.event_name != 'pull_request' && github.ref_name == 'main'
runs-on: ubuntu-latest
steps:
# Trigger an repoisitory dispath event
Expand Down
2 changes: 0 additions & 2 deletions src/batch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -643,5 +643,3 @@ function batchDataEvaluation(

return batch
end


2 changes: 0 additions & 2 deletions src/optimiser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,3 @@ function apply!(optim::FluxOptimiserWrapper, params)
end

### generic FMIFlux.AbstractOptimiser ###


2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ global EXPORTINGTOOL = nothing
global EXPORTINGVERSION = nothing
global X0 = [2.0, 0.0]
global OPTIMISER = Descent
global FAILED_GRADIENTS_QUOTA = 1/3
global FAILED_GRADIENTS_QUOTA = 1 / 3

# callback for bad optimization steps counter
global FAILED_GRADIENTS = 0
Expand Down

0 comments on commit 838ba9b

Please sign in to comment.