Skip to content

Commit

Permalink
Merge pull request #4 from JuliaOcean/v0p1p2b
Browse files Browse the repository at this point in the history
add github actions
  • Loading branch information
gaelforget authored Oct 5, 2024
2 parents 3dcfd3e + 4ce68aa commit 508a141
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} # optional
run: julia -e 'using CompatHelper; CompatHelper.main()'

1 change: 1 addition & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ jobs:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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.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'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
os:
- ubuntu-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: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
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 docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
.DS_Store
/Manifest.toml
/dev/
/docs/Manifest.toml
/docs/build/
/docs/site/
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ NetCDF = "30363a11-5582-574a-97bb-aa9a979735b9"

[compat]
Distributions = "0.23, 0.24, 0.25"
NetCDF = "0.10, 0.11"
NetCDF = "0.10, 0.11, 0.12"
julia = "1"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# OceanColorData.jl

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

Processing and analysis of [ocean color data](https://en.wikipedia.org/wiki/Ocean_color#Ocean_color_radiometry).
Expand Down
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ makedocs(;
repo="https://github.com/gaelforget/OceanColorData.jl/blob/{commit}{path}#L{line}",
sitename="OceanColorData.jl",
authors="gaelforget <gforget@mit.edu>",
assets=String[],
warnonly = [:cross_references,:missing_docs],
)

deploydocs(;
Expand Down

0 comments on commit 508a141

Please sign in to comment.