Skip to content

Commit 800a1d2

Browse files
committed
Using GitHub actions for CI, ditched Cirrus and Travis
Also added postproc.jl
1 parent 27c6448 commit 800a1d2

File tree

6 files changed

+58
-67
lines changed

6 files changed

+58
-67
lines changed

.cirrus.yml

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

.github/workflows/CompatHelper.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 * * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
76
jobs:
8-
build:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
matrix:
12-
julia-version: [1.2.0]
13-
julia-arch: [x86]
14-
os: [ubuntu-latest]
7+
CompatHelper:
8+
runs-on: ubuntu-latest
159
steps:
16-
- uses: julia-actions/setup-julia@latest
17-
with:
18-
version: ${{ matrix.julia-version }}
19-
- name: Install dependencies
20-
run: julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(name = "CompatHelper", url = "https://github.com/bcbi/CompatHelper.jl.git"))'
21-
- name: CompatHelper.main
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
2213
env:
2314
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
JULIA_DEBUG: CompatHelper
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
2516
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 6 additions & 2 deletions
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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.1'
14+
- 'nightly'
15+
os:
16+
- ubuntu-latest
17+
- macOS-latest
18+
- windows-latest
19+
arch:
20+
- x64
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: julia-actions/setup-julia@v1
24+
with:
25+
version: ${{ matrix.version }}
26+
arch: ${{ matrix.arch }}
27+
- uses: actions/cache@v1
28+
env:
29+
cache-name: cache-artifacts
30+
with:
31+
path: ~/.julia/artifacts
32+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-test-
36+
${{ runner.os }}-
37+
- uses: julia-actions/julia-buildpkg@v1
38+
- uses: julia-actions/julia-runtest@v1
39+
- uses: julia-actions/julia-processcoverage@v1
40+
- uses: codecov/codecov-action@v1
41+
with:
42+
file: lcov.info

.travis.yml

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

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
# WhereTheWaterFlows
22

3-
<!-- [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://mauro3.github.io/WhereTheWaterFlows.jl/stable) -->
4-
<!-- [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://mauro3.github.io/WhereTheWaterFlows.jl/dev) -->
5-
[![Build Status](https://travis-ci.com/mauro3/WhereTheWaterFlows.jl.svg?branch=master)](https://travis-ci.com/mauro3/WhereTheWaterFlows.jl)
3+
[![Build Status](https://github.com/mauro3/WhereTheWaterFlows.jl/workflows/CI/badge.svg)](https://github.com/mauro3/WhereTheWaterFlows.jl/actions)
64
[![Build Status](https://ci.appveyor.com/api/projects/status/github/mauro3/WhereTheWaterFlows.jl?svg=true)](https://ci.appveyor.com/project/mauro3/WhereTheWaterFlows-jl)
7-
<!-- [![Build Status](https://api.cirrus-ci.com/github/mauro3/WhereTheWaterFlows.jl.svg)](https://cirrus-ci.com/github/mauro3/WhereTheWaterFlows.jl) -->
8-
[![Codecov](https://codecov.io/gh/mauro3/WhereTheWaterFlows.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/mauro3/WhereTheWaterFlows.jl)
9-
<!-- [![Coveralls](https://coveralls.io/repos/github/mauro3/WhereTheWaterFlows.jl/badge.svg?branch=master)](https://coveralls.io/github/mauro3/WhereTheWaterFlows.jl?branch=master) -->
10-
5+
[![Coverage](https://codecov.io/gh/mauro3/WhereTheWaterFlows.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/mauro3/WhereTheWaterFlows.jl)
116

127
This package implements the D8 flow routing algorithm [1] as well as a
138
basin-filling algorithm, also by [1]. It uses a O(n), recursive algorithm

0 commit comments

Comments
 (0)