Skip to content

Commit 4e37e5b

Browse files
authored
Update CI (#15)
* Update CI * Add JuliaFormatter config
1 parent 510d0e4 commit 4e37e5b

File tree

8 files changed

+58
-52
lines changed

8 files changed

+58
-52
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style="YAS"
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
name: julia-1.6
1+
name: CI
2+
23
on:
34
push:
45
branches:
56
- master
67
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+
715
jobs:
816
test:
917
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -13,12 +21,11 @@ jobs:
1321
matrix:
1422
version:
1523
- '1.6'
24+
- '1'
1625
os:
1726
- ubuntu-latest
1827
arch:
1928
- x64
20-
env:
21-
PYTHON: ''
2229
steps:
2330
- uses: actions/checkout@v2
2431
with:
@@ -27,18 +34,13 @@ jobs:
2734
with:
2835
version: ${{ matrix.version }}
2936
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v2
37+
- uses: julia-actions/cache@v1
3138
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
3941
- uses: julia-actions/julia-runtest@v1
4042
- uses: julia-actions/julia-processcoverage@v1
41-
- uses: codecov/codecov-action@v1
43+
- uses: codecov/codecov-action@v2
4244
with:
4345
token: ${{ secrets.CODECOV_TOKEN }}
4446
file: lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
name: julia-1.6
1+
name: Docs
2+
23
on:
34
push:
45
branches:
56
- master
7+
tags: [v*]
68
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+
716
jobs:
817
docs:
918
name: Documentation
@@ -13,12 +22,7 @@ jobs:
1322
- uses: julia-actions/setup-julia@v1
1423
with:
1524
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
2226
env:
2327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2428
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
name: julia-nightly
1+
name: JuliaNightly
2+
23
on:
34
push:
45
branches:
56
- master
67
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+
715
jobs:
816
test:
917
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -17,8 +25,6 @@ jobs:
1725
- ubuntu-latest
1826
arch:
1927
- x64
20-
env:
21-
PYTHON: ''
2228
steps:
2329
- uses: actions/checkout@v2
2430
with:
@@ -27,18 +33,13 @@ jobs:
2733
with:
2834
version: ${{ matrix.version }}
2935
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v2
36+
- uses: julia-actions/cache@v1
3137
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
3940
- uses: julia-actions/julia-runtest@v1
4041
- uses: julia-actions/julia-processcoverage@v1
41-
- uses: codecov/codecov-action@v1
42+
- uses: codecov/codecov-action@v2
4243
with:
4344
token: ${{ secrets.CODECOV_TOKEN }}
4445
file: lcov.info

.github/workflows/TagBot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
| **Build Status** | **Coverage** | **Documentation** |
44
|:------------------------------------------------------:|:-------------------------------:|:-----------------:|
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] |
66

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
99
[gha-url]: https://github.com/JuliaCompilerPlugins/CodeInfoTools.jl/actions
1010
[codecov-img]: https://codecov.io/github/JuliaCompilerPlugins/CodeInfoTools.jl/badge.svg?branch=master
1111
[codecov-url]: https://codecov.io/github/JuliaCompilerPlugins/CodeInfoTools.jl?branch=master

format/run.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using JuliaFormatter
22

33
function main()
4-
perfect = format(joinpath(@__DIR__, ".."); style=YASStyle(), verbose=true)
4+
perfect = format(joinpath(@__DIR__, ".."); verbose=true)
55
if perfect
66
@info "Linting complete - no files altered"
77
else

0 commit comments

Comments
 (0)