Skip to content

Commit 93feb37

Browse files
committed
Use GitHub actions instead of Travis, update to Documenter.jl v0.26
1 parent 6a354b4 commit 93feb37

File tree

6 files changed

+98
-71
lines changed

6 files changed

+98
-71
lines changed

.github/workflows/CompatHelper.yml

+2-6
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.4
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

+6-2
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

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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
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+
- uses: julia-actions/julia-runtest@latest
59+
- uses: julia-actions/julia-processcoverage@v1
60+
- uses: codecov/codecov-action@v1
61+
with:
62+
file: lcov.info
63+
docs:
64+
name: Documentation
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v2
68+
- uses: julia-actions/setup-julia@latest
69+
with:
70+
version: '1'
71+
- name: Cache artifacts
72+
uses: actions/cache@v2
73+
env:
74+
cache-name: cache-artifacts
75+
with:
76+
path: ~/.julia/artifacts
77+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
78+
restore-keys: |
79+
${{ runner.os }}-test-${{ env.cache-name }}-
80+
${{ runner.os }}-test-
81+
${{ runner.os }}-
82+
- uses: julia-actions/julia-buildpkg@latest
83+
- uses: julia-actions/julia-docdeploy@latest
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
87+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
88+
GKSwstype: 'nul'

.gitignore

+1
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

-62
This file was deleted.

docs/Project.toml

+1-1
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"

0 commit comments

Comments
 (0)