File tree 7 files changed +82
-92
lines changed
7 files changed +82
-92
lines changed Original file line number Diff line number Diff line change 1
1
name : CompatHelper
2
+
2
3
on :
3
4
schedule :
4
5
- cron : 0 0 * * *
5
6
workflow_dispatch :
6
- permissions :
7
- contents : write
8
- pull-requests : write
7
+
9
8
jobs :
10
9
CompatHelper :
11
10
runs-on : ubuntu-latest
12
11
steps :
13
- - name : Check if Julia is already available in the PATH
14
- id : julia_in_path
15
- run : which julia
16
- continue-on-error : true
17
- - name : Install Julia, but only if it is not already available in the PATH
18
- uses : julia-actions/setup-julia@v1
19
- with :
20
- version : ' 1'
21
- arch : ${{ runner.arch }}
22
- if : steps.julia_in_path.outcome != 'success'
23
- - name : " Add the General registry via Git"
24
- run : |
25
- import Pkg
26
- ENV["JULIA_PKG_SERVER"] = ""
27
- Pkg.Registry.add("General")
28
- shell : julia --color=yes {0}
29
- - name : " Install CompatHelper"
30
- run : |
31
- import Pkg
32
- name = "CompatHelper"
33
- uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34
- version = "3"
35
- Pkg.add(; name, uuid, version)
36
- shell : julia --color=yes {0}
37
- - name : " Run CompatHelper"
38
- run : |
39
- import CompatHelper
40
- CompatHelper.main()
41
- shell : julia --color=yes {0}
12
+ - name : Pkg.add("CompatHelper")
13
+ run : julia -e 'using Pkg; Pkg.add("CompatHelper")'
14
+ - name : CompatHelper.main()
42
15
env :
43
16
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
17
COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
45
- # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
18
+ run : julia -e 'using CompatHelper; CompatHelper.main()'
Original file line number Diff line number Diff line change
1
+ name : FormatCheck
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ tags : ' *'
8
+ pull_request :
9
+ branches :
10
+ - ' master'
11
+ jobs :
12
+ build :
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ version :
17
+ - ' 1' # automatically expands to the latest stable 1.x release of Julia
18
+ os :
19
+ - ubuntu-latest
20
+ arch :
21
+ - x64
22
+ steps :
23
+ - uses : julia-actions/setup-julia@latest
24
+ with :
25
+ version : ${{ matrix.version }}
26
+ arch : ${{ matrix.arch }}
27
+
28
+ - uses : actions/checkout@v4
29
+ - name : Install JuliaFormatter and format
30
+ run : |
31
+ julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
32
+ julia -e 'using JuliaFormatter; format(".", verbose=true)'
Original file line number Diff line number Diff line change 28
28
- uses : JuliaRegistries/TagBot@v1
29
29
with :
30
30
token : ${{ secrets.GITHUB_TOKEN }}
31
- # Edit the following line to reflect the actual name of the GitHub Secret containing your private key
32
- ssh : ${{ secrets.DOCUMENTER_KEY }}
33
- # ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
31
+ ssh : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 1
- name : CI (Julia nightly)
1
+ name : CI - nightly
2
2
on :
3
- - push
4
- - pull_request
3
+ push :
4
+ branches :
5
+ - ' master'
6
+ - ' main'
7
+ - ' release-'
8
+ tags : ' *'
9
+ pull_request :
10
+ workflow_dispatch :
11
+
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress : true
15
+
5
16
jobs :
6
17
test :
7
18
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -14,20 +25,23 @@ jobs:
14
25
os :
15
26
- ubuntu-latest
16
27
- macOS-latest
17
- - windows-latest
28
+ # - windows-latest # does not work on windows
18
29
arch :
19
30
- x64
20
31
steps :
21
- - uses : actions/checkout@v2
22
- - uses : julia-actions/setup-julia@v1
32
+ - uses : actions/checkout@v4
33
+ - uses : julia-actions/setup-julia@v2
23
34
with :
24
35
version : ${{ matrix.version }}
25
36
arch : ${{ matrix.arch }}
37
+ - uses : julia-actions/cache@v1
26
38
- uses : julia-actions/julia-buildpkg@latest
27
39
- uses : julia-actions/julia-runtest@latest
28
40
env :
29
41
JULIA_NUM_THREADS : 4
30
42
- uses : julia-actions/julia-processcoverage@v1
31
- - uses : codecov/codecov-action@v1
43
+ - uses : codecov/codecov-action@v4
44
+ env :
45
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
32
46
with :
33
47
file : lcov.info
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
- - push
4
- - pull_request
3
+ push :
4
+ branches :
5
+ - ' master'
6
+ - ' main'
7
+ - ' release-'
8
+ tags : ' *'
9
+ pull_request :
10
+ workflow_dispatch :
11
+
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress : true
15
+
5
16
jobs :
6
17
test :
7
18
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -15,20 +26,23 @@ jobs:
15
26
os :
16
27
- ubuntu-latest
17
28
- macOS-latest
18
- - windows-latest
29
+ # - windows-latest # does not work on windows
19
30
arch :
20
31
- x64
21
32
steps :
22
- - uses : actions/checkout@v2
23
- - uses : julia-actions/setup-julia@v1
33
+ - uses : actions/checkout@v4
34
+ - uses : julia-actions/setup-julia@v2
24
35
with :
25
36
version : ${{ matrix.version }}
26
37
arch : ${{ matrix.arch }}
38
+ - uses : julia-actions/cache@v1
27
39
- uses : julia-actions/julia-buildpkg@latest
28
40
- uses : julia-actions/julia-runtest@latest
29
41
env :
30
42
JULIA_NUM_THREADS : 4
31
43
- uses : julia-actions/julia-processcoverage@v1
32
- - uses : codecov/codecov-action@v1
44
+ - uses : codecov/codecov-action@v4
45
+ env :
46
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
33
47
with :
34
48
file : lcov.info
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
* .jl.cov
2
2
* .jl. * .cov
3
3
* .jl.mem
4
- Manifest.toml
4
+ Manifest.toml
5
+ .vscode /
You can’t perform that action at this time.
0 commit comments