Skip to content

Commit f52cbe4

Browse files
authored
Merge pull request #124 from JuliaGraphs/gh-ci
setup gh actions
2 parents d12c16e + 8f4e85a commit f52cbe4

File tree

9 files changed

+95
-111
lines changed

9 files changed

+95
-111
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/CompatHelper.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
jobs:
7+
CompatHelper:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- version: '1'
16+
os: ubuntu-latest
17+
arch: x64
18+
- version: '1.5'
19+
os: ubuntu-latest
20+
arch: x64
21+
- version: 'nightly'
22+
os: ubuntu-latest
23+
arch: x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
- uses: julia-actions/julia-processcoverage@v1
43+
- uses: codecov/codecov-action@v1
44+
with:
45+
file: lcov.info
46+
docs:
47+
name: Documentation
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: julia-actions/setup-julia@v1
52+
with:
53+
version: '1'
54+
- shell: bash
55+
run: julia --project=docs -e "using Pkg; Pkg.develop(PackageSpec(path=pwd()))"
56+
- shell: bash
57+
run: julia --project=docs -e "using Pkg; Pkg.instantiate(); Pkg.build()"
58+
- run: julia --project=docs docs/make.jl
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

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

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# MetaGraphs
22

3-
[![Build Status](https://travis-ci.org/JuliaGraphs/MetaGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphs/MetaGraphs.jl)
4-
[![codecov.io](http://codecov.io/github/JuliaGraphs/MetaGraphs.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaGraphs/MetaGraphs.jl?branch=master)
3+
[![Build Status][build-img]][build-url]
4+
[![Codecov branch][codecov-img]][codecov-url]
55
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliagraphs.github.io/MetaGraphs.jl/latest)
66

77
[LightGraphs.jl](https://github.com/JuliaGraphs/LightGraphs.jl) graphs with arbitrary metadata.
88

9+
[build-img]: https://github.com/JuliaGraphs/Metagraphs.jl/workflows/CI/badge.svg?branch=master
10+
[build-url]: https://github.com/JuliaGraphs/Metagraphs.jl/actions?query=workflow%3ACI
11+
[codecov-img]: http://codecov.io/github/JuliaGraphs/Metagraphs.jl/coverage.svg?branch=master
12+
[codecov-url]: http://codecov.io/github/JuliaGraphs/Metagraphs.jl?branch=master
13+
914
## Documentation
1015
Full documentation is available at [GitHub Pages](https://juliagraphs.github.io/MetaGraphs.jl/latest).
1116
Documentation for methods is also available via the Julia REPL help system.

appveyor.yml

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

codecov.yml

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

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
4+
5+
[compat]
6+
Documenter = "0.27"

docs/make.jl

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,16 @@ cp(normpath(@__FILE__, "../../LICENSE.md"), normpath(@__FILE__, "../src/license.
88

99
makedocs(
1010
modules = [MetaGraphs],
11-
format = :html,
1211
sitename = "MetaGraphs",
13-
pages = Any[
12+
format = Documenter.HTML(prettyurls=get(ENV, "CI", nothing) == "true"),
13+
pages = Any[
1414
"Overview" => "index.md",
1515
"MetaGraphs Functions" => "metagraphs.md",
1616
"License Information" => "license.md"
17-
]
17+
],
1818
)
1919

20-
deploydocs(
21-
deps=nothing,
22-
make=nothing,
23-
repo="github.com/JuliaGraphs/MetaGraphs.jl.git",
24-
target="build",
25-
julia="0.6",
26-
osname = "linux"
27-
)
28-
20+
deploydocs(repo="github.com/JuliaGraphs/Metagraphs.jl.git", push_preview=true)
21+
2922
rm(normpath(@__FILE__, "../src/index.md"))
3023
rm(normpath(@__FILE__, "../src/license.md"))

0 commit comments

Comments
 (0)