File tree 3 files changed +19
-83
lines changed 3 files changed +19
-83
lines changed Original file line number Diff line number Diff line change 1
- name : Documentation
1
+ name : " Documentation"
2
+
2
3
on :
3
4
push :
4
5
branches :
7
8
pull_request :
8
9
schedule :
9
10
- cron : ' 47 20 * * 0'
11
+
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
15
+
10
16
jobs :
11
- build :
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
15
- - uses : julia-actions/setup-julia@latest
16
- with :
17
- version : ' 1'
18
- - name : Install dependencies
19
- run : julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20
- - name : Build and deploy
21
- env :
22
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23
- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24
- run : julia --project=docs/ docs/make.jl
25
- - uses : julia-actions/julia-processcoverage@v1
26
- with :
27
- directories : src
28
- - uses : codecov/codecov-action@v3
29
- with :
30
- files : lcov.info
17
+ build-and-deploy-docs :
18
+ name : " Documentation"
19
+ uses : " SciML/.github/.github/workflows/documentation.yml@v1"
20
+ secrets : " inherit"
Original file line number Diff line number Diff line change 1
- name : format-check
1
+ name : " Format Check "
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- ' master'
7
- - ' release-'
8
7
tags : ' *'
9
8
pull_request :
10
9
11
10
jobs :
12
- build :
13
- runs-on : ${{ matrix.os }}
14
- strategy :
15
- matrix :
16
- julia-version : [1]
17
- julia-arch : [x86]
18
- os : [ubuntu-latest]
19
- steps :
20
- - uses : julia-actions/setup-julia@latest
21
- with :
22
- version : ${{ matrix.julia-version }}
23
-
24
- - uses : actions/checkout@v4
25
- - name : Install JuliaFormatter and format
26
- # This will use the latest version by default but you can set the version like so:
27
- #
28
- # julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
29
- run : |
30
- julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
31
- julia -e 'using JuliaFormatter; format(".", verbose=true)'
32
- - name : Format check
33
- run : |
34
- julia -e '
35
- out = Cmd(`git diff --name-only`) |> read |> String
36
- if out == ""
37
- exit(0)
38
- else
39
- @error "Some files have not been formatted !!!"
40
- write(stdout, out)
41
- exit(1)
42
- end'
11
+ format-check :
12
+ name : " Format Check"
13
+ uses : " SciML/.github/.github/workflows/format-check.yml@v1"
Original file line number Diff line number Diff line change 1
- name : Invalidations
1
+ name : " Invalidations"
2
2
3
3
on :
4
4
pull_request :
@@ -10,31 +10,6 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
- evaluate :
14
- # Only run on PRs to the default branch.
15
- # In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16
- if : github.base_ref == github.event.repository.default_branch
17
- runs-on : ubuntu-latest
18
- steps :
19
- - uses : julia-actions/setup-julia@v2.0.0
20
- with :
21
- version : ' 1'
22
- - uses : actions/checkout@v4
23
- - uses : julia-actions/julia-buildpkg@v1
24
- - uses : julia-actions/julia-invalidations@v1
25
- id : invs_pr
26
-
27
- - uses : actions/checkout@v4
28
- with :
29
- ref : ${{ github.event.repository.default_branch }}
30
- - uses : julia-actions/julia-buildpkg@v1
31
- - uses : julia-actions/julia-invalidations@v1
32
- id : invs_default
33
-
34
- - name : Report invalidation counts
35
- run : |
36
- echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37
- echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38
- - name : Check if the PR does increase number of invalidations
39
- if : steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40
- run : exit 1
13
+ evaluate-invalidations :
14
+ name : " Evaluate Invalidations"
15
+ uses : " SciML/.github/.github/workflows/invalidations.yml@v1"
You can’t perform that action at this time.
0 commit comments