Skip to content

Commit 2ede9dc

Browse files
author
Pietro Vertechi
authored
switch to github actions for ci (#163)
* set up github ci * add docs step * update docs script
1 parent d79e7fa commit 2ede9dc

File tree

7 files changed

+68
-82
lines changed

7 files changed

+68
-82
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.0' # 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'.
14+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: actions/cache@v1
27+
env:
28+
cache-name: cache-artifacts
29+
with:
30+
path: ~/.julia/artifacts
31+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32+
restore-keys: |
33+
${{ runner.os }}-test-${{ env.cache-name }}-
34+
${{ runner.os }}-test-
35+
${{ runner.os }}-
36+
- uses: GabrielBB/xvfb-action@v1
37+
with:
38+
run: julia --project=@. -e "using Pkg; Pkg.build(); Pkg.test(coverage=true)"
39+
- uses: julia-actions/julia-processcoverage@v1
40+
- uses: codecov/codecov-action@v1
41+
with:
42+
file: lcov.info
43+
docs:
44+
name: Documentation
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: julia-actions/setup-julia@v1
49+
with:
50+
version: '1'
51+
- run: |
52+
julia --project=docs -e '
53+
using Pkg;
54+
Pkg.develop(PackageSpec(path=pwd()));
55+
Pkg.instantiate()'
56+
- run: julia --project=docs docs/make.jl
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ docs/site/
1313
docs/src/tutorial.md
1414
*.ipynb_checkpoints
1515
deps/build.log
16+
/Manifest.toml
17+
docs/Manifest.toml

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# InteractBase
22

3-
[![Build Status](https://travis-ci.org/piever/InteractBase.jl.svg?branch=master)](https://travis-ci.org/piever/InteractBase.jl)
3+
[![CI](https://github.com/piever/InteractBase.jl/workflows/CI/badge.svg?branch=master)](https://github.com/piever/InteractBase.jl/actions?query=workflow%3ACI+branch%3Amaster)
44
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaGizmos.github.io/Interact.jl/latest)
55
[![codecov.io](http://codecov.io/github/piever/InteractBase.jl/coverage.svg?branch=master)](http://codecov.io/github/piever/InteractBase.jl?branch=master)
66

appveyor.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
using Documenter, InteractBase
22

33
makedocs(
4-
format = :html,
4+
format = Documenter.HTML(;
5+
prettyurls=get(ENV, "CI", "false") == "true",
6+
),
57
sitename = "InteractBase",
68
authors = "Pietro Vertechi",
79
pages = [
810
"Introduction" => "index.md",
911
]
1012
)
1113

12-
deploydocs(
13-
repo = "github.com/piever/InteractBase.jl.git",
14-
target = "build",
15-
julia = "1.0",
16-
osname = "linux",
17-
deps = nothing,
18-
make = nothing
19-
)
14+
deploydocs(repo = "github.com/piever/InteractBase.jl.git")

0 commit comments

Comments
 (0)