From 508aa6631d39e1eb4b2238797a485850115bf141 Mon Sep 17 00:00:00 2001 From: Tobias Knopp Date: Thu, 10 Dec 2020 09:36:29 +0100 Subject: [PATCH] change CI --- .github/workflows/ci.yml | 68 ++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e12a5c77 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,68 @@ +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.3' # 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. + - 'nightly' + 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@v1 + with: + file: lcov.info + 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: doctest + using RegularizedLeastSquares + doctest(RegularizedLeastSquares)' # change MYPACKAGE to the name of your package + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/README.md b/README.md index ed88a9ae..338df5f7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # RegularizedLeastSquares -[![Build Status](https://travis-ci.com/tknopp/RegularizedLeastSquares.jl.svg?branch=master)](https://travis-ci.com/tknopp/RegularizedLeastSquares.jl) +[![Build status](https://github.com/tknopp/RegularizedLeastSquares.jl/workflows/CI/badge.svg)](https://github.com/tknopp/RegularizedLeastSquares.jl/actions) [![codecov.io](http://codecov.io/github/tknopp/RegularizedLeastSquares.jl/coverage.svg?branch=master)](http://codecov.io/github/tknopp/RegularizedLeastSquares.jl?branch=master)