Skip to content

Commit

Permalink
Merge pull request #69 from JuliaGeometry/sjk/ci1
Browse files Browse the repository at this point in the history
[ci] switch to GHA
  • Loading branch information
sjkelly committed Mar 18, 2022
2 parents 9e18fe6 + bf94638 commit f41fd84
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 34 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1.6'
- 'nightly'
os:
- ubuntu-latest
#- macOS-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: coverallsapp/github-action@master
with:
path-to-lcov: lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run${{ matrix.os }}-${{ matrix.version }}-${{ matrix.arch }}
parallel: true
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using Contour
DocMeta.setdocmeta!(Contour, :DocTestSetup, :(using Contour); recursive=true)
doctest(Contour)'
- run: julia --project=docs docs/make.jl
env:
JULIA_PKG_SERVER: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
finish:
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Documentation:
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaGeometry.github.io/Contour.jl/latest)

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

A generic implementation of the [marching squares](https://en.wikipedia.org/wiki/Marching_squares) algorithm for tracing contour curves on a scalar 2D field.
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Contour, Test
include("verify_vertices.jl")
include("interface.jl")

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

#issue 59
@inferred collect(())

0 comments on commit f41fd84

Please sign in to comment.