Skip to content

Commit 508a141

Browse files
authored
Merge pull request #4 from JuliaOcean/v0p1p2b
add github actions
2 parents 3dcfd3e + 4ce68aa commit 508a141

File tree

7 files changed

+90
-5
lines changed

7 files changed

+90
-5
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 00 * * *'
6+
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Pkg.add("CompatHelper")
12+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
13+
- name: CompatHelper.main()
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} # optional
17+
run: julia -e 'using CompatHelper; CompatHelper.main()'
18+

.github/workflows/TagBot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ jobs:
99
- uses: JuliaRegistries/TagBot@v1
1010
with:
1111
token: ${{ secrets.GITHUB_TOKEN }}
12+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.9' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20+
os:
21+
- ubuntu-latest
22+
arch:
23+
- x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
- uses: julia-actions/julia-processcoverage@v1
43+
- uses: codecov/codecov-action@v4
44+
with:
45+
files: lcov.info
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
fail_ci_if_error: false
48+
docs:
49+
name: Documentation
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v2
53+
- uses: julia-actions/setup-julia@v1
54+
with:
55+
version: '1'
56+
- run: |
57+
julia --project=docs -e '
58+
using Pkg
59+
Pkg.develop(PackageSpec(path=pwd()))
60+
Pkg.instantiate()'
61+
- run: julia --project=docs docs/make.jl
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
65+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
.DS_Store
55
/Manifest.toml
66
/dev/
7+
/docs/Manifest.toml
78
/docs/build/
89
/docs/site/

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ NetCDF = "30363a11-5582-574a-97bb-aa9a979735b9"
99

1010
[compat]
1111
Distributions = "0.23, 0.24, 0.25"
12-
NetCDF = "0.10, 0.11"
12+
NetCDF = "0.10, 0.11, 0.12"
1313
julia = "1"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# OceanColorData.jl
22

3-
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaOcean.github.io/OceanColorData.jl/stable)
4-
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaOcean.github.io/OceanColorData.jl/dev)
5-
[![Build Status](https://travis-ci.com/JuliaOcean/OceanColorData.jl.svg?branch=master)](https://travis-ci.com/JuliaOcean/OceanColorData.jl)
3+
[![Documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaOcean.github.io/OceanColorData.jl/dev)
4+
[![CI](https://github.com/JuliaOcean/OceanColorData.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/JuliaOcean/OceanColorData.jl/actions/workflows/ci.yml)
5+
[![Codecov](https://codecov.io/gh/JuliaOcean/OceanColorData.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaOcean/OceanColorData.jl)
66
[![DOI](https://zenodo.org/badge/248762827.svg)](https://zenodo.org/badge/latestdoi/248762827)
77

88
Processing and analysis of [ocean color data](https://en.wikipedia.org/wiki/Ocean_color#Ocean_color_radiometry).

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ makedocs(;
99
repo="https://github.com/gaelforget/OceanColorData.jl/blob/{commit}{path}#L{line}",
1010
sitename="OceanColorData.jl",
1111
authors="gaelforget <gforget@mit.edu>",
12-
assets=String[],
12+
warnonly = [:cross_references,:missing_docs],
1313
)
1414

1515
deploydocs(;

0 commit comments

Comments
 (0)