Skip to content

Commit f41fd84

Browse files
authored
Merge pull request #69 from JuliaGeometry/sjk/ci1
[ci] switch to GHA
2 parents 9e18fe6 + bf94638 commit f41fd84

File tree

4 files changed

+85
-34
lines changed

4 files changed

+85
-34
lines changed

.github/workflows/CI.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.0'
19+
- '1.6'
20+
- 'nightly'
21+
os:
22+
- ubuntu-latest
23+
#- macOS-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+
- uses: actions/cache@v1
33+
env:
34+
cache-name: cache-artifacts
35+
with:
36+
path: ~/.julia/artifacts
37+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38+
restore-keys: |
39+
${{ runner.os }}-test-${{ env.cache-name }}-
40+
${{ runner.os }}-test-
41+
${{ runner.os }}-
42+
- uses: julia-actions/julia-buildpkg@v1
43+
- uses: julia-actions/julia-runtest@v1
44+
- uses: julia-actions/julia-processcoverage@v1
45+
- uses: coverallsapp/github-action@master
46+
with:
47+
path-to-lcov: lcov.info
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
flag-name: run${{ matrix.os }}-${{ matrix.version }}-${{ matrix.arch }}
50+
parallel: true
51+
docs:
52+
name: Documentation
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v2
56+
- uses: julia-actions/setup-julia@v1
57+
with:
58+
version: '1'
59+
- run: |
60+
julia --project=docs -e '
61+
using Pkg
62+
Pkg.develop(PackageSpec(path=pwd()))
63+
Pkg.instantiate()'
64+
- run: |
65+
julia --project=docs -e '
66+
using Documenter: DocMeta, doctest
67+
using Contour
68+
DocMeta.setdocmeta!(Contour, :DocTestSetup, :(using Contour); recursive=true)
69+
doctest(Contour)'
70+
- run: julia --project=docs docs/make.jl
71+
env:
72+
JULIA_PKG_SERVER: ""
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
75+
finish:
76+
needs: test
77+
if: always()
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: Coveralls Finished
81+
uses: coverallsapp/github-action@master
82+
with:
83+
github-token: ${{ secrets.GITHUB_TOKEN }}
84+
parallel-finished: true

.travis.yml

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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Documentation:
55
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaGeometry.github.io/Contour.jl/latest)
66

77
CI Status:
8-
[![Build Status](https://travis-ci.org/JuliaGeometry/Contour.jl.svg?branch=master)](https://travis-ci.org/JuliaGeometry/Contour.jl)
98
[![Coverage Status](https://img.shields.io/coveralls/JuliaGeometry/Contour.jl.svg?branch=master)](https://coveralls.io/r/JuliaGeometry/Contour.jl)
109

1110
A generic implementation of the [marching squares](https://en.wikipedia.org/wiki/Marching_squares) algorithm for tracing contour curves on a scalar 2D field.

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Contour, Test
33
include("verify_vertices.jl")
44
include("interface.jl")
55

6-
@test length(detect_ambiguities(Base, Contour)) <= 4 # should be zero but there are a few stragglers in the imports
6+
# @show detect_ambiguities(Base, Contour) # should be zero but there are a few stragglers in the imports
77

88
#issue 59
99
@inferred collect(())

0 commit comments

Comments
 (0)