Skip to content

Commit 26d3acb

Browse files
committed
CI: switch to GH Actions and Codecov
- drop .travis.yml - add ubuntu-1-x86 testing - add win-1-x64 testing
1 parent f9bbe58 commit 26d3acb

File tree

3 files changed

+76
-30
lines changed

3 files changed

+76
-30
lines changed

.github/workflows/ci.yml

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

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Methods for data clustering and evaluation of clustering quality.
44

5-
[![Travis](https://travis-ci.org/JuliaStats/Clustering.jl.svg?branch=master)](https://travis-ci.org/JuliaStats/Clustering.jl)
6-
[![Coveralls](https://coveralls.io/repos/github/JuliaStats/Clustering.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaStats/Clustering.jl?branch=master)
5+
[![Build Status](https://github.com/JuliaStats/Clustering.jl/workflows/CI/badge.svg)](https://github.com/JuliaStats/Clustering.jl/actions?query=workflow%3ACI+branch%3Amaster)
6+
[![codecov](https://codecov.io/gh/JuliaStats/Clustering.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaStats/Clustering.jl)
77

88
**Documentation**: [![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url]
99

0 commit comments

Comments
 (0)