File tree Expand file tree Collapse file tree 8 files changed +152
-66
lines changed
Expand file tree Collapse file tree 8 files changed +152
-66
lines changed Original file line number Diff line number Diff line change 1+ # CompatHelper v3.5.0
12name : CompatHelper
2-
33on :
44 schedule :
5- - cron : ' 00 00 * * *'
6-
5+ - cron : 0 0 * * *
6+ workflow_dispatch :
7+ permissions :
8+ contents : write
9+ pull-requests : write
710jobs :
811 CompatHelper :
912 runs-on : ubuntu-latest
1013 steps :
11- - uses : julia-actions/setup-julia@latest
14+ - name : Check if Julia is already available in the PATH
15+ id : julia_in_path
16+ run : which julia
17+ continue-on-error : true
18+ - name : Install Julia, but only if it is not already available in the PATH
19+ uses : julia-actions/setup-julia@v1
1220 with :
13- version : 1.3
14- - name : Pkg.add("CompatHelper")
15- run : julia -e 'using Pkg; Pkg.add("CompatHelper")'
16- - name : CompatHelper.main()
21+ version : ' 1'
22+ arch : ${{ runner.arch }}
23+ if : steps.julia_in_path.outcome != 'success'
24+ - name : " Add the General registry via Git"
25+ run : |
26+ import Pkg
27+ ENV["JULIA_PKG_SERVER"] = ""
28+ Pkg.Registry.add("General")
29+ shell : julia --color=yes {0}
30+ - name : " Install CompatHelper"
31+ run : |
32+ import Pkg
33+ name = "CompatHelper"
34+ uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
35+ version = "3"
36+ Pkg.add(; name, uuid, version)
37+ shell : julia --color=yes {0}
38+ - name : " Run CompatHelper"
39+ run : |
40+ import CompatHelper
41+ CompatHelper.main()
42+ shell : julia --color=yes {0}
1743 env :
1844 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19- run : julia -e 'using CompatHelper; CompatHelper.main()'
45+ COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
46+ # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # https://github.com/julia-actions/julia-format/blob/master/workflows/format_pr.yml
2- name : format-pr
1+ name : Formatter
2+
3+ # Modified from https://github.com/julia-actions/julia-format/blob/master/workflows/format_pr.yml
34on :
45 push :
56 branches :
2930 - name : Check outputs
3031 run : |
3132 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
32- echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
33+ echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Original file line number Diff line number Diff line change 1+ name : Invalidations
2+ # Uses SnoopCompile to evaluate number of invalidations caused by `using` the package
3+ # using https://github.com/julia-actions/julia-invalidations
4+
5+ on :
6+ pull_request :
7+
8+ concurrency :
9+ # Skip intermediate builds: always.
10+ # Cancel intermediate builds: always.
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ evaluate :
16+ # Only run on PRs to the default branch.
17+ # In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
18+ if : github.base_ref == github.event.repository.default_branch
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : julia-actions/setup-julia@v1
22+ with :
23+ version : ' 1'
24+ - uses : actions/checkout@v3
25+ - uses : julia-actions/julia-buildpkg@v1
26+ - uses : julia-actions/julia-invalidations@v1
27+ id : invs_pr
28+
29+ - uses : actions/checkout@v3
30+ with :
31+ ref : ${{ github.event.repository.default_branch }}
32+ - uses : julia-actions/julia-buildpkg@v1
33+ - uses : julia-actions/julia-invalidations@v1
34+ id : invs_default
35+
36+ - name : Report invalidation counts
37+ run : |
38+ echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
39+ echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
40+ - name : Check if the PR does increase number of invalidations
41+ if : steps.invs_pr.outputs.total > steps.invs_default.outputs.total
42+ run : exit 1
Original file line number Diff line number Diff line change 1+ name : Register Package
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : Version to register or component to bump
7+ required : true
8+ jobs :
9+ register :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : julia-actions/RegisterAction@latest
13+ with :
14+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : TagBot
2+ on :
3+ issue_comment :
4+ types :
5+ - created
6+ workflow_dispatch :
7+ jobs :
8+ TagBot :
9+ if : github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : JuliaRegistries/TagBot@v1
13+ with :
14+ token : ${{ secrets.GITHUB_TOKEN }}
15+ ssh : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 11name : CI
22on :
3- push :
4- branches :
5- - main
6- pull_request :
7- types : [opened, synchronize, reopened]
3+ - push
4+ - pull_request
85jobs :
96 test :
107 name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
118 runs-on : ${{ matrix.os }}
12- continue-on-error : ${{ matrix.allow_failure }}
139 strategy :
1410 fail-fast : false
1511 matrix :
16- version : ['1.6', '1']
17- os : [ubuntu-latest, macOS-latest, windows-latest]
18- arch : [x64]
19- allow_failure : [false]
20- include :
21- - version : ' nightly'
22- os : ubuntu-latest
23- arch : x64
24- allow_failure : true
25- - version : ' nightly'
26- os : macOS-latest
27- arch : x64
28- allow_failure : true
29- - version : ' nightly'
30- os : windows-latest
31- arch : x64
32- allow_failure : true
12+ version :
13+ - ' 1.6'
14+ - ' 1'
15+ - ' nightly'
16+ os :
17+ - ubuntu-latest
18+ arch :
19+ - x64
3320 steps :
3421 - uses : actions/checkout@v2
3522 - uses : julia-actions/setup-julia@v1
5138 - uses : julia-actions/julia-processcoverage@v1
5239 - uses : codecov/codecov-action@v1
5340 with :
54- file : lcov.info
41+ file : lcov.info
42+ docs :
43+ name : Documentation
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v2
47+ - uses : julia-actions/setup-julia@v1
48+ with :
49+ version : ' 1'
50+ - run : |
51+ julia --project=docs -e '
52+ using Pkg
53+ Pkg.develop(PackageSpec(path=pwd()))
54+ Pkg.instantiate()'
55+ - run : |
56+ julia --project=docs -e '
57+ using Documenter: DocMeta, doctest
58+ using PDEOptimizationProblems
59+ DocMeta.setdocmeta!(PDEOptimizationProblems, :DocTestSetup, :(using PDEOptimizationProblems); recursive=true)
60+ doctest(PDEOptimizationProblems)'
61+ - run : julia --project=docs docs/make.jl
62+ env :
63+ JULIA_PKG_SERVER : " "
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 11# PDEOptimizationProblems
22
3- [ ![ DOI] ( )] ( )
4- [ ![ GitHub release] ( https://img.shields.io/github/release/tmigot/PDEOptimizationProblems.svg )] ( https://github.com/tmigot/PDEOptimizationProblems/releases/latest )
5- [ ![ ] ( https://img.shields.io/badge/docs-stable-3f51b5.svg )] ( https://tmigot.github.io/PDEOptimizationProblems/stable )
6- [ ![ ] ( https://img.shields.io/badge/docs-dev-3f51b5.svg )] ( https://tmigot.github.io/PDEOptimizationProblems/dev )
7- [ ![ codecov] ( https://codecov.io/gh/tmigot/PDEOptimizationProblems/branch/main/graph/badge.svg?token=eyiGsilbZx )] ( https://codecov.io/gh/tmigot/PDEOptimizationProblems )
8- ![ CI] ( https://github.com/tmigot/PDEOptimizationProblems/workflows/CI/badge.svg?branch=main )
9- [ ![ Cirrus CI - Base Branch Build Status] ( https://img.shields.io/cirrus/github/tmigot/PDEOptimizationProblems?logo=Cirrus%20CI )] ( https://cirrus-ci.com/github/tmigot/PDEOptimizationProblems )
3+ [ ![ Stable] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://JuliaSmoothOptimizers.github.io/PDEOptimizationProblems.jl/stable )
4+ [ ![ Dev] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://JuliaSmoothOptimizers.github.io/PDEOptimizationProblems.jl/dev )
5+ [ ![ Build Status] ( https://github.com/JuliaSmoothOptimizers/PDEOptimizationProblems.jl/workflows/CI/badge.svg )] ( https://github.com/JuliaSmoothOptimizers/PDEOptimizationProblems.jl/actions )
6+ [ ![ Build Status] ( https://api.cirrus-ci.com/github/JuliaSmoothOptimizers/PDEOptimizationProblems.jl.svg )] ( https://cirrus-ci.com/github/JuliaSmoothOptimizers/PDEOptimizationProblems.jl )
7+ [ ![ Docs workflow Status] ( https://github.com/JuliaSmoothOptimizers/PDEOptimizationProblems.jl/actions/workflows/Docs.yml/badge.svg?branch=main )] ( https://github.com/JuliaSmoothOptimizers/PDEOptimizationProblems.jl/actions/workflows/Docs.yml?query=branch%3Amain )
8+ [ ![ Coverage] ( https://codecov.io/gh/JuliaSmoothOptimizers/PDEOptimizationProblems.jl/branch/master/graph/badge.svg )] ( https://codecov.io/gh/JuliaSmoothOptimizers/PDEOptimizationProblems.jl )
109
1110A list of optimization problems with ODE/PDE in the constraints model and discretized using [ Gridap.jl] ( https://github.com/gridap/Gridap.jl ) and [ PDENLPModels.jl] ( https://github.com/tmigot/PDENLPModels.jl ) .
1211
You can’t perform that action at this time.
0 commit comments