Skip to content

Commit 9c982ee

Browse files
committed
Fix CI
1 parent 1a0de74 commit 9c982ee

33 files changed

+2655
-2572
lines changed

.JuliaFormatter.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
style = "sciml"
22
whitespace_in_kwargs = false
33
always_use_return = true
4-
indent = 2
54
format_docstrings = true
65
join_lines_based_on_source = false
76
separate_kwargs_with_semicolon = true

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
version:
2525
- '1'
2626
- '1.6'
27-
- '~1.9.0-0'
2827
steps:
2928
- uses: actions/checkout@v3
3029
- uses: julia-actions/setup-julia@v1

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
julia-version: [1.7]
16+
julia-version: [1]
1717
julia-arch: [x86]
1818
os: [ubuntu-latest]
1919
steps:

.github/workflows/FormatPR.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: format-pr
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Install JuliaFormatter and format
11+
run: |
12+
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
13+
julia -e 'using JuliaFormatter; format(".")'
14+
# https://github.com/marketplace/actions/create-pull-request
15+
# https://github.com/peter-evans/create-pull-request#reference-example
16+
- name: Create Pull Request
17+
id: cpr
18+
uses: peter-evans/create-pull-request@v5
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
commit-message: Format .jl files
22+
title: 'Automatic JuliaFormatter.jl run'
23+
branch: auto-juliaformatter-pr
24+
delete-branch: true
25+
labels: formatting, automated pr, no changelog
26+
- name: Check outputs
27+
run: |
28+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
29+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.github/workflows/TagBot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ rng = Random.default_rng()
3434
Random.seed!(rng, seed)
3535

3636
model = Lux.Chain(Lux.Dense(2, 2),
37-
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
38-
Lux.Dense(2, 2; bias=false),
39-
Lux.Dense(2, 2; bias=false)),
40-
DEQs.ContinuousDEQSolver(;
41-
abstol=0.1f0,
42-
reltol=0.1f0,
43-
abstol_termination=0.1f0,
44-
reltol_termination=0.1f0)))
37+
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
38+
Lux.Dense(2, 2; bias=false),
39+
Lux.Dense(2, 2; bias=false)),
40+
DEQs.ContinuousDEQSolver(;
41+
abstol=0.1f0,
42+
reltol=0.1f0,
43+
abstol_termination=0.1f0,
44+
reltol_termination=0.1f0)))
4545

4646
ps, st = gpu.(Lux.setup(rng, model))
4747
x = gpu(rand(rng, Float32, 2, 1))

docs/make.jl

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ bib = CitationBibliography(joinpath(@__DIR__, "ref.bib"); sorting=:nyt)
88
include("pages.jl")
99

1010
makedocs(bib;
11-
sitename="Fast Deep Equilibrium Networks",
12-
authors="Avik Pal et al.",
13-
clean=true,
14-
doctest=false,
15-
modules=[DeepEquilibriumNetworks],
16-
strict=[
17-
:doctest,
18-
:linkcheck,
19-
:parse_error,
20-
:example_block,
21-
# Other available options are
22-
# :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block,
23-
# :footnote, :meta_block, :missing_docs, :setup_block
24-
],
25-
checkdocs=:all,
26-
format=Documenter.HTML(;
27-
assets=["assets/favicon.ico"],
28-
canonical="https://docs.sciml.ai/DeepEquilibriumNetworks/stable/"),
29-
pages=pages)
11+
sitename="Fast Deep Equilibrium Networks",
12+
authors="Avik Pal et al.",
13+
clean=true,
14+
doctest=false,
15+
modules=[DeepEquilibriumNetworks],
16+
strict=[
17+
:doctest,
18+
:linkcheck,
19+
:parse_error,
20+
:example_block,
21+
# Other available options are
22+
# :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block,
23+
# :footnote, :meta_block, :missing_docs, :setup_block
24+
],
25+
checkdocs=:all,
26+
format=Documenter.HTML(;
27+
assets=["assets/favicon.ico"],
28+
canonical="https://docs.sciml.ai/DeepEquilibriumNetworks/stable/"),
29+
pages=pages)
3030

3131
deploydocs(; repo="github.com/SciML/DeepEquilibriumNetworks.jl.git", push_preview=true)

docs/pages.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pages = [
2-
"Home" => "index.md",
3-
"Manual" => [
4-
"Dynamical Systems" => "manual/solvers.md",
5-
"DEQ Layers" => "manual/deqs.md",
6-
"Miscellaneous" => "manual/misc.md",
7-
],
8-
"References" => "references.md",
2+
"Home" => "index.md",
3+
"Manual" => [
4+
"Dynamical Systems" => "manual/solvers.md",
5+
"DEQ Layers" => "manual/deqs.md",
6+
"Miscellaneous" => "manual/misc.md",
7+
],
8+
"References" => "references.md",
99
]

docs/src/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ rng = Random.default_rng()
2727
Random.seed!(rng, seed)
2828

2929
model = Lux.Chain(Lux.Dense(2, 2),
30-
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
31-
Lux.Dense(2, 2; bias=false),
32-
Lux.Dense(2, 2; bias=false)),
33-
DEQs.ContinuousDEQSolver(;
34-
abstol=0.1f0,
35-
reltol=0.1f0,
36-
abstol_termination=0.1f0,
37-
reltol_termination=0.1f0)))
30+
DEQs.DeepEquilibriumNetwork(Lux.Parallel(+,
31+
Lux.Dense(2, 2; bias=false),
32+
Lux.Dense(2, 2; bias=false)),
33+
DEQs.ContinuousDEQSolver(;
34+
abstol=0.1f0,
35+
reltol=0.1f0,
36+
abstol_termination=0.1f0,
37+
reltol_termination=0.1f0)))
3838

3939
ps, st = gpu.(Lux.setup(rng, model))
4040
x = gpu(rand(rng, Float32, 2, 1))

0 commit comments

Comments
 (0)