Skip to content

Commit 7acba12

Browse files
committed
Update actions
1 parent 5faaadb commit 7acba12

7 files changed

+82
-92
lines changed

.github/workflows/CompatHelper.yml

+6-33
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,18 @@
11
name: CompatHelper
2+
23
on:
34
schedule:
45
- cron: 0 0 * * *
56
workflow_dispatch:
6-
permissions:
7-
contents: write
8-
pull-requests: write
7+
98
jobs:
109
CompatHelper:
1110
runs-on: ubuntu-latest
1211
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()
4215
env:
4316
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4417
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45-
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
18+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/FormatCheck.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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)'

.github/workflows/TagBot.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ jobs:
2828
- uses: JuliaRegistries/TagBot@v1
2929
with:
3030
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 }}
+21-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
name: CI (Julia nightly)
1+
name: CI - nightly
22
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+
516
jobs:
617
test:
718
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -14,20 +25,23 @@ jobs:
1425
os:
1526
- ubuntu-latest
1627
- macOS-latest
17-
- windows-latest
28+
# - windows-latest # does not work on windows
1829
arch:
1930
- x64
2031
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
2334
with:
2435
version: ${{ matrix.version }}
2536
arch: ${{ matrix.arch }}
37+
- uses: julia-actions/cache@v1
2638
- uses: julia-actions/julia-buildpkg@latest
2739
- uses: julia-actions/julia-runtest@latest
2840
env:
2941
JULIA_NUM_THREADS: 4
3042
- 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 }}
3246
with:
3347
file: lcov.info

.github/workflows/ci.yml

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
name: CI
22
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+
516
jobs:
617
test:
718
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -15,20 +26,23 @@ jobs:
1526
os:
1627
- ubuntu-latest
1728
- macOS-latest
18-
- windows-latest
29+
# - windows-latest # does not work on windows
1930
arch:
2031
- x64
2132
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
2435
with:
2536
version: ${{ matrix.version }}
2637
arch: ${{ matrix.arch }}
38+
- uses: julia-actions/cache@v1
2739
- uses: julia-actions/julia-buildpkg@latest
2840
- uses: julia-actions/julia-runtest@latest
2941
env:
3042
JULIA_NUM_THREADS: 4
3143
- 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 }}
3347
with:
3448
file: lcov.info

.github/workflows/format_check.yml

-42
This file was deleted.

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.jl.cov
22
*.jl.*.cov
33
*.jl.mem
4-
Manifest.toml
4+
Manifest.toml
5+
.vscode/

0 commit comments

Comments
 (0)