Skip to content

Commit 50536d3

Browse files
authored
Multiple changes to CI (#252)
* move most platforms to GitHub Actions, leave only FreeBSD with Travis, until it works * run tests also with Julia v1.3, the earliest version officially supported by the package * run Travis only on master branch * switch TagBot to the new issue-based trigger
1 parent 99c92ae commit 50536d3

File tree

3 files changed

+74
-18
lines changed

3 files changed

+74
-18
lines changed

.github/workflows/TagBot.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
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

.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+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ["*"]
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- "1.3"
18+
- "1"
19+
- "nightly"
20+
os:
21+
- ubuntu-latest
22+
- macOS-latest
23+
- windows-latest
24+
arch:
25+
- x64
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: julia-actions/setup-julia@v1
29+
with:
30+
version: ${{ matrix.version }}
31+
arch: ${{ matrix.arch }}
32+
- name: Cache artifacts
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@latest
44+
- uses: julia-actions/julia-runtest@latest
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: ./lcov.info
49+
flags: unittests
50+
docs:
51+
name: Documentation
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v2
55+
- uses: julia-actions/setup-julia@v1
56+
with:
57+
version: "1"
58+
- uses: julia-actions/julia-docdeploy@releases/v1
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
language: julia
22
os:
3-
- linux
4-
- osx
53
- freebsd
6-
- windows
74
julia:
5+
- 1.3
86
- 1
97
- nightly
108
notifications:
119
email: false
12-
coveralls: true
13-
jobs:
14-
include:
15-
- stage: "Documentation"
16-
julia: 1
17-
os: linux
18-
script:
19-
- julia --project=docs/ -e 'using Pkg;
20-
Pkg.develop(PackageSpec(path=pwd()));
21-
Pkg.instantiate();
22-
Pkg.build();'
23-
- julia --project=docs/ docs/make.jl
24-
after_success: skip
10+
11+
branches:
12+
only:
13+
- master
14+
- gh-pages # For building documentation
15+
- /^testing-.*$/ # testing branches
16+
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags

0 commit comments

Comments
 (0)