diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d77987d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,67 @@ +name: CI +on: + push: + branches: + - master + tags: '*' + pull_request: +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.3' + - '1' + - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v1 + - uses: julia-actions/julia-buildpkg@v1 + - run: | + julia --project=test -e ' + using Pkg + Pkg.instantiate() + ' + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v2 + with: + files: lcov.info + docs: + name: Documentation + runs-on: ubuntu-latest + permissions: + contents: write + 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 }} diff --git a/Project.toml b/Project.toml index 980b0ee..d998d22 100644 --- a/Project.toml +++ b/Project.toml @@ -1,10 +1,10 @@ name = "PhysicalOceanography" uuid = "e1a20e90-c40e-46c0-93e3-c2da05da97e3" authors = ["Gael Forget "] -version = "0.1.1" +version = "0.1.2" [compat] -julia = "1" +julia = "1.3" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/README.md b/README.md index dd2fbc2..2dc51e8 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # PhysicalOceanography -[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://gaelforget.github.io/PhysicalOceanography.jl/stable) -[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://gaelforget.github.io/PhysicalOceanography.jl/dev) +[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaOcean.github.io/PhysicalOceanography.jl/stable) +[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaOcean.github.io/PhysicalOceanography.jl/dev) [![DOI](https://zenodo.org/badge/277150554.svg)](https://zenodo.org/badge/latestdoi/277150554) -[![Build Status](https://github.com/gaelforget/PhysicalOceanography.jl/workflows/CI/badge.svg)](https://github.com/gaelforget/PhysicalOceanography.jl/actions) -[![Build Status](https://travis-ci.org/gaelforget/PhysicalOceanography.jl.svg?branch=master)](https://travis-ci.org/gaelforget/PhysicalOceanography.jl) -[![Coverage](https://codecov.io/gh/gaelforget/PhysicalOceanography.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/gaelforget/PhysicalOceanography.jl) -[![Coverage](https://coveralls.io/repos/github/gaelforget/PhysicalOceanography.jl/badge.svg?branch=master)](https://coveralls.io/github/gaelforget/PhysicalOceanography.jl?branch=master) +[![Build Status](https://github.com/JuliaOcean/PhysicalOceanography.jl/workflows/CI/badge.svg)](https://github.com/JuliaOcean/PhysicalOceanography.jl/actions) +[![Build Status](https://travis-ci.org/JuliaOcean/PhysicalOceanography.jl.svg?branch=master)](https://travis-ci.org/JuliaOcean/PhysicalOceanography.jl) +[![Coverage](https://codecov.io/gh/JuliaOcean/PhysicalOceanography.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaOcean/PhysicalOceanography.jl) +[![Coverage](https://coveralls.io/repos/github/JuliaOcean/PhysicalOceanography.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaOcean/PhysicalOceanography.jl?branch=master) _This package is in early development stage when breaking changes are to be expected._ diff --git a/docs/make.jl b/docs/make.jl index 03f275c..8ceb4c5 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -25,11 +25,11 @@ pages(folder) = [joinpath(folder, f) for f in readdir(joinpath(src, folder)) if makedocs(; modules=[PhysicalOceanography], authors="Gael Forget ", - repo="https://github.com/gaelforget/PhysicalOceanography.jl/blob/{commit}{path}#L{line}", + repo="https://github.com/JuliaOcean/PhysicalOceanography.jl/blob/{commit}{path}#L{line}", sitename="PhysicalOceanography.jl", format=Documenter.HTML(; prettyurls=get(ENV, "CI", "false") == "true", - canonical="https://gaelforget.github.io/PhysicalOceanography.jl", + canonical="https://JuliaOcean.github.io/PhysicalOceanography.jl", assets=String[], ), pages=[ @@ -39,5 +39,5 @@ makedocs(; ) deploydocs(; - repo="github.com/gaelforget/PhysicalOceanography.jl", + repo="github.com/JuliaOcean/PhysicalOceanography.jl", )