Skip to content

Commit 622036b

Browse files
committed
Use GitHub actions instead of Travis, update CI and docs-gen config
1 parent 1b4ed43 commit 622036b

File tree

9 files changed

+117
-73
lines changed

9 files changed

+117
-73
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@ name: CompatHelper
33
on:
44
schedule:
55
- cron: '00 00 * * *'
6-
issues:
7-
types: [opened, reopened]
86
push:
97
branches:
108
- actions/trigger/CompatHelper
11-
9+
workflow_dispatch:
1210
jobs:
1311
CompatHelper:
1412
runs-on: ubuntu-latest
1513
steps:
16-
- uses: julia-actions/setup-julia@latest
17-
with:
18-
version: 1.3
1914
- name: Pkg.add("CompatHelper")
2015
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
2116
- name: CompatHelper.main()
2217
env:
2318
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
2420
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1
1013
with:
1114
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
- 'releases/**'
9+
tags: '*'
10+
pull_request:
11+
release:
12+
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ matrix.version == 'nightly' }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.0'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
- macOS-latest
28+
- windows-latest
29+
arch:
30+
- x64
31+
# - x86 # Python uproot package is not available on x86
32+
exclude:
33+
# 32-bit Julia binaries are not available on macOS
34+
- os: macOS-latest
35+
arch: x86
36+
- os: windows-latest
37+
arch: x86
38+
- version: nightly
39+
arch: x86
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: julia-actions/setup-julia@latest
43+
with:
44+
version: ${{ matrix.version }}
45+
arch: ${{ matrix.arch }}
46+
- name: Cache artifacts
47+
uses: actions/cache@v2
48+
env:
49+
cache-name: cache-artifacts
50+
with:
51+
path: ~/.julia/artifacts
52+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
53+
restore-keys: |
54+
${{ runner.os }}-test-${{ env.cache-name }}-
55+
${{ runner.os }}-test-
56+
${{ runner.os }}-
57+
- uses: julia-actions/julia-buildpkg@latest
58+
env:
59+
PYTHON: 'Conda'
60+
- uses: julia-actions/julia-runtest@latest
61+
- uses: julia-actions/julia-processcoverage@v1
62+
- uses: codecov/codecov-action@v1
63+
with:
64+
file: lcov.info
65+
docs:
66+
name: Documentation
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v2
70+
- uses: julia-actions/setup-julia@latest
71+
with:
72+
version: '1'
73+
- name: Cache artifacts
74+
uses: actions/cache@v2
75+
env:
76+
cache-name: cache-artifacts
77+
with:
78+
path: ~/.julia/artifacts
79+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
80+
restore-keys: |
81+
${{ runner.os }}-test-${{ env.cache-name }}-
82+
${{ runner.os }}-test-
83+
${{ runner.os }}-
84+
- uses: julia-actions/julia-buildpkg@latest
85+
env:
86+
PYTHON: 'Conda'
87+
- uses: julia-actions/julia-docdeploy@latest
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
91+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
92+
GKSwstype: 'nul'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*.jl.*.cov
44
*.jl.mem
55
.ipynb_checkpoints
6+
.vscode
67
Manifest.toml

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Documentation for stable version](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaHEP.github.io/UpROOT.jl/stable)
44
[![Documentation for development version](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaHEP.github.io/UpROOT.jl/dev)
55
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
6-
[![Travis Build Status](https://travis-ci.com/JuliaHEP/UpROOT.jl.svg?branch=master)](https://travis-ci.com/JuliaHEP/UpROOT.jl)
6+
[![Build Status](https://github.com/JuliaHEP/UpROOT.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaHEP/UpROOT.jl/actions?query=workflow%3ACI)
77
[![Codecov](https://codecov.io/gh/JuliaHEP/UpROOT.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaHEP/UpROOT.jl)
88

99
UpROOT.jl makes it possible to read and write CERN ROOT files without

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
44

55
[compat]
6-
Documenter = "~0.24"
6+
Documenter = "~0.26"

docs/make.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ makedocs(
1212
modules = [UpROOT],
1313
format = Documenter.HTML(
1414
prettyurls = !("local" in ARGS),
15-
canonical = "https://juliahep.github.io/UpROOT.jl/stable/"
15+
canonical = "https://JuliaHEP.github.io/UpROOT.jl/stable/"
1616
),
17-
pages=[
17+
pages = [
1818
"Home" => "index.md",
1919
"API" => "api.md",
2020
"LICENSE" => "LICENSE.md",
2121
],
2222
doctest = ("fixdoctests" in ARGS) ? :fix : true,
23-
linkcheck = ("linkcheck" in ARGS),
23+
linkcheck = !("nonstrict" in ARGS),
2424
strict = !("nonstrict" in ARGS),
2525
)
2626

docs/src/api.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ DocTestSetup = quote
66
end
77
```
88

9-
## Types
9+
## Modules
1010

1111
```@index
12-
Order = [:type]
12+
Order = [:module]
1313
```
1414

15-
## Functions
15+
## Types and constants
1616

1717
```@index
18-
Order = [:function]
18+
Order = [:type, :constant]
19+
```
20+
21+
## Functions and macros
22+
23+
```@index
24+
Order = [:macro, :function]
1925
```
2026

2127
# Documentation
2228

2329
```@autodocs
2430
Modules = [UpROOT]
25-
Order = [:type, :function]
31+
Order = [:module, :type, :constant, :macro, :function]
2632
```

0 commit comments

Comments
 (0)