File tree Expand file tree Collapse file tree 4 files changed +107
-0
lines changed
Expand file tree Collapse file tree 4 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CompatHelper
2+ on :
3+ schedule :
4+ - cron : 0 0 * * *
5+ workflow_dispatch :
6+ permissions :
7+ contents : write
8+ pull-requests : write
9+ jobs :
10+ CompatHelper :
11+ runs-on : ubuntu-latest
12+ 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}
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
45+ # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
Original file line number Diff line number Diff line change 1+ name : TagBot
2+ on :
3+ issue_comment : # THIS BIT IS NEW
4+ types :
5+ - created
6+ workflow_dispatch :
7+ jobs :
8+ TagBot :
9+ # THIS 'if' LINE IS NEW
10+ if : github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
11+ # NOTHING BELOW HAS CHANGED
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : JuliaRegistries/TagBot@v1
15+ with :
16+ token : ${{ secrets.GITHUB_TOKEN }}
17+ ssh : ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ jobs :
8+ test :
9+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+ runs-on : ${{ matrix.os }}
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ version :
15+ - ' 1.6'
16+ - ' 1' # Latest stable release
17+ os :
18+ - ubuntu-latest
19+ - macOS-latest
20+ - windows-latest
21+ arch :
22+ - x64
23+ steps :
24+ - uses : actions/checkout@v2
25+ - uses : julia-actions/setup-julia@v1
26+ with :
27+ version : ${{ matrix.version }}
28+ arch : ${{ matrix.arch }}
29+ - uses : actions/cache@v1
30+ env :
31+ cache-name : cache-artifacts
32+ with :
33+ path : ~/.julia/artifacts
34+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35+ restore-keys : |
36+ ${{ runner.os }}-test-${{ env.cache-name }}-
37+ ${{ runner.os }}-test-
38+ ${{ runner.os }}-
39+ - uses : julia-actions/julia-buildpkg@v1
40+ - uses : julia-actions/julia-runtest@v1
41+ - uses : julia-actions/julia-processcoverage@v1
42+ - uses : codecov/codecov-action@v1
43+ with :
44+ file : lcov.info
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1111AbstractFFTs = " 1"
1212FFTW = " 1"
1313ForwardDiff = " 0.10"
14+ julia = " 1.6"
1415
1516[extras ]
1617Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
You can’t perform that action at this time.
0 commit comments