Skip to content

Commit e466d0c

Browse files
committed
Add register action + update CI to new julia-actions
1 parent 8108f04 commit e466d0c

2 files changed

Lines changed: 36 additions & 25 deletions

File tree

.github/workflows/CI.yml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- main
6+
tags: ["*"]
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
513
jobs:
614
test:
715
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -11,7 +19,7 @@ jobs:
1119
matrix:
1220
version:
1321
- "1.3"
14-
- "1.6"
22+
- "1.8"
1523
- "nightly"
1624
os:
1725
- ubuntu-latest
@@ -25,42 +33,29 @@ jobs:
2533
with:
2634
version: ${{ matrix.version }}
2735
arch: ${{ matrix.arch }}
28-
- uses: actions/cache@v1
29-
env:
30-
cache-name: cache-artifacts
31-
with:
32-
path: ~/.julia/artifacts
33-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34-
restore-keys: |
35-
${{ runner.os }}-test-${{ env.cache-name }}-
36-
${{ runner.os }}-test-
37-
${{ runner.os }}-
36+
- uses: julia-actions/cache@v1
3837
- uses: julia-actions/julia-buildpkg@v1
3938
- uses: julia-actions/julia-runtest@v1
4039
- uses: julia-actions/julia-processcoverage@v1
41-
- uses: codecov/codecov-action@v1
40+
- uses: codecov/codecov-action@v2
4241
with:
43-
file: lcov.info
42+
files: lcov.info
4443
docs:
4544
name: Documentation
4645
runs-on: ubuntu-latest
4746
steps:
4847
- uses: actions/checkout@v2
4948
- uses: julia-actions/setup-julia@v1
5049
with:
51-
version: "1.6"
52-
- run: |
53-
julia --project=docs -e '
54-
using Pkg
55-
Pkg.develop(PackageSpec(path=pwd()))
56-
Pkg.instantiate()'
50+
version: "1.8"
51+
- uses: julia-actions/julia-buildpkg@v1
52+
- uses: julia-actions/julia-docdeploy@v1
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
5756
- run: |
5857
julia --project=docs -e '
5958
using Documenter: DocMeta, doctest
6059
using MultiScaleTreeGraph
6160
DocMeta.setdocmeta!(MultiScaleTreeGraph, :DocTestSetup, :(using MultiScaleTreeGraph); recursive=true)
6261
doctest(MultiScaleTreeGraph)'
63-
- run: julia --project=docs docs/make.jl
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/register.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Register Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: Version to register or component to bump
7+
required: true
8+
jobs:
9+
register:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: julia-actions/RegisterAction@latest
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)