File tree Expand file tree Collapse file tree 8 files changed +58
-52
lines changed Expand file tree Collapse file tree 8 files changed +58
-52
lines changed Original file line number Diff line number Diff line change
1
+ style =" YAS"
Original file line number Diff line number Diff line change 1
- name : julia-1.6
1
+ name : CI
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
6
7
pull_request :
8
+
9
+ concurrency :
10
+ # Skip intermediate builds: always.
11
+ # Cancel intermediate builds: only if it is a pull request build.
12
+ group : ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
14
+
7
15
jobs :
8
16
test :
9
17
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -13,12 +21,11 @@ jobs:
13
21
matrix :
14
22
version :
15
23
- ' 1.6'
24
+ - ' 1'
16
25
os :
17
26
- ubuntu-latest
18
27
arch :
19
28
- x64
20
- env :
21
- PYTHON : ' '
22
29
steps :
23
30
- uses : actions/checkout@v2
24
31
with :
@@ -27,18 +34,13 @@ jobs:
27
34
with :
28
35
version : ${{ matrix.version }}
29
36
arch : ${{ matrix.arch }}
30
- - uses : actions/cache@v2
37
+ - uses : julia- actions/cache@v1
31
38
with :
32
- path : ~/.julia/artifacts
33
- key : ${{ runner.os }}-test-artifacts-${{ hashFiles('**/Project.toml') }}
34
- restore-keys : ${{ runner.os }}-test-artifacts
35
- - run : |
36
- julia --project=. -e '
37
- using Pkg
38
- Pkg.instantiate()'
39
+ cache-packages : " false"
40
+ - uses : julia-actions/julia-buildpkg@v1
39
41
- uses : julia-actions/julia-runtest@v1
40
42
- uses : julia-actions/julia-processcoverage@v1
41
- - uses : codecov/codecov-action@v1
43
+ - uses : codecov/codecov-action@v2
42
44
with :
43
45
token : ${{ secrets.CODECOV_TOKEN }}
44
46
file : lcov.info
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : julia-1.6
1
+ name : Docs
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
7
+ tags : [v*]
6
8
pull_request :
9
+
10
+ concurrency :
11
+ # Skip intermediate builds: always.
12
+ # Cancel intermediate builds: only if it is a pull request build.
13
+ group : ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
15
+
7
16
jobs :
8
17
docs :
9
18
name : Documentation
13
22
- uses : julia-actions/setup-julia@v1
14
23
with :
15
24
version : ' 1.6'
16
- - run : |
17
- julia --project=docs -e '
18
- using Pkg
19
- Pkg.develop(PackageSpec(path=pwd()))
20
- Pkg.instantiate()'
21
- - run : julia --project=docs docs/make.jl
25
+ - uses : julia-actions/julia-docdeploy@v1
22
26
env :
23
27
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
28
DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 1
- name : julia-nightly
1
+ name : JuliaNightly
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
6
7
pull_request :
8
+
9
+ concurrency :
10
+ # Skip intermediate builds: always.
11
+ # Cancel intermediate builds: only if it is a pull request build.
12
+ group : ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
14
+
7
15
jobs :
8
16
test :
9
17
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17
25
- ubuntu-latest
18
26
arch :
19
27
- x64
20
- env :
21
- PYTHON : ' '
22
28
steps :
23
29
- uses : actions/checkout@v2
24
30
with :
@@ -27,18 +33,13 @@ jobs:
27
33
with :
28
34
version : ${{ matrix.version }}
29
35
arch : ${{ matrix.arch }}
30
- - uses : actions/cache@v2
36
+ - uses : julia- actions/cache@v1
31
37
with :
32
- path : ~/.julia/artifacts
33
- key : ${{ runner.os }}-test-artifacts-${{ hashFiles('**/Project.toml') }}
34
- restore-keys : ${{ runner.os }}-test-artifacts
35
- - run : |
36
- julia --project=. -e '
37
- using Pkg
38
- Pkg.instantiate()'
38
+ cache-packages : " false"
39
+ - uses : julia-actions/julia-buildpkg@v1
39
40
- uses : julia-actions/julia-runtest@v1
40
41
- uses : julia-actions/julia-processcoverage@v1
41
- - uses : codecov/codecov-action@v1
42
+ - uses : codecov/codecov-action@v2
42
43
with :
43
44
token : ${{ secrets.CODECOV_TOKEN }}
44
45
file : lcov.info
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 2
2
3
3
| ** Build Status** | ** Coverage** | ** Documentation** |
4
4
| :------------------------------------------------------:| :-------------------------------:| :-----------------:|
5
- | [ ![ ] [ gha-1.6 -img ]] [ gha-url ] [ ![ ] [ gha-nightly-img ]] [ gha-url ] | [ ![ ] [ codecov-img ]] [ codecov-url ] | [ ![ ] [ dev-docs-img ]] [ dev-docs-url ] |
5
+ | [ ![ ] [ gha-ci -img ]] [ gha-url ] [ ![ ] [ gha-nightly-img ]] [ gha-url ] | [ ![ ] [ codecov-img ]] [ codecov-url ] | [ ![ ] [ dev-docs-img ]] [ dev-docs-url ] |
6
6
7
- [ gha-1.6 -img ] : https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/workflows/julia-1.6 /badge.svg
8
- [ gha-nightly-img ] : https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/workflows/julia-nightly /badge.svg
7
+ [ gha-ci -img ] : https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/workflows/CI /badge.svg?branch=master
8
+ [ gha-nightly-img ] : https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/workflows/JuliaNightly /badge.svg?branch=master
9
9
[ gha-url ] : https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/actions
10
10
[ codecov-img ] : https://codecov.io/github/JuliaCompilerPlugins/CodeInfoTools.jl/badge.svg?branch=master
11
11
[ codecov-url ] : https://codecov.io/github/JuliaCompilerPlugins/CodeInfoTools.jl?branch=master
Original file line number Diff line number Diff line change 1
1
using JuliaFormatter
2
2
3
3
function main ()
4
- perfect = format (joinpath (@__DIR__ , " .." ); style = YASStyle (), verbose= true )
4
+ perfect = format (joinpath (@__DIR__ , " .." ); verbose= true )
5
5
if perfect
6
6
@info " Linting complete - no files altered"
7
7
else
You can’t perform that action at this time.
0 commit comments