Skip to content

Commit 1673e1a

Browse files
author
Wimmerer
committed
CI?
1 parent 5692964 commit 1673e1a

File tree

3 files changed

+61
-13
lines changed

3 files changed

+61
-13
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: julia-actions/setup-julia@latest
1212
with:
13-
version: 1.3
13+
version: 1.6
1414
- name: Pkg.add("CompatHelper")
1515
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1616
- name: CompatHelper.main()

.github/workflows/ci.yml

Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,70 @@
1-
name: Documentation
2-
1+
env:
2+
JULIA_NUM_THREADS: 2
3+
name: CI
34
on:
5+
pull_request:
6+
branches:
7+
- master
48
push:
59
branches:
610
- master
711
tags: '*'
8-
pull_request:
9-
1012
jobs:
11-
build:
13+
test:
14+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
21+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
22+
- 'nightly'
23+
os:
24+
- ubuntu-latest
25+
arch:
26+
- x64
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info
49+
docs:
50+
name: Documentation
1251
runs-on: ubuntu-latest
1352
steps:
1453
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@latest
54+
- uses: julia-actions/setup-julia@v1
1655
with:
17-
version: '1.6'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
56+
version: '1'
57+
- run: |
58+
julia --project=docs -e '
59+
using Pkg
60+
Pkg.develop(PackageSpec(path=pwd()))
61+
Pkg.instantiate()'
62+
- run: |
63+
julia --project=docs -e '
64+
using Documenter: doctest
65+
using SuiteSparseGraphBLAS
66+
doctest(SuiteSparseGraphBLAS)' # change SuiteSparseGraphBLAS to the name of your package
67+
- run: julia --project=docs docs/make.jl
2168
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
23-
run: julia --project=docs/ docs/make.jl
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1515
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1616

1717
[compat]
18+
SSGraphBLAS_jll = "5.1.2"
1819
julia = "1.6"

0 commit comments

Comments
 (0)