From 40ed271842cb7983bf0f50b15ee70aa6a2e04db5 Mon Sep 17 00:00:00 2001 From: Massimiliano Fasi Date: Tue, 12 Jul 2022 20:07:15 +0100 Subject: [PATCH 1/3] Move continuous integration to GitHub Actions --- .github/workflows/ContinuousIntegration.yml | 45 +++++++++++++++++++++ .github/workflows/Documentation.yml | 34 ++++++++++++++++ .travis.yml | 40 ------------------ 3 files changed, 79 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/ContinuousIntegration.yml create mode 100644 .github/workflows/Documentation.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ContinuousIntegration.yml b/.github/workflows/ContinuousIntegration.yml new file mode 100644 index 0000000..4c9fdc1 --- /dev/null +++ b/.github/workflows/ContinuousIntegration.yml @@ -0,0 +1,45 @@ +name: ContinuousIntegration + +on: + pull_request: + branches: + - master + push: + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.7' # Minimum supporter Julia version. + - '1' # Latest stable 1.x release of Julia. + os: + - ubuntu-latest + arch: + - x64 + - x86 + 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 \ No newline at end of file diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml new file mode 100644 index 0000000..d3a7f19 --- /dev/null +++ b/.github/workflows/Documentation.yml @@ -0,0 +1,34 @@ +name: Documentation + +on: + pull_request: + branches: + - master + push: + branches: + - master + tags: '*' + +jobs: + docs: + 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: DocMeta, doctest + using GraphMatFun + DocMeta.setdocmeta!(GraphMatFun, :DocTestSetup, :(using GraphMatFun); recursive=true) + doctest(GraphMatFun)' + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6ab6128..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia -language: julia -notifications: - email: false -julia: - - 1.6 - - nightly -os: - - linux -arch: - - x64 - - x86 -cache: - directories: - - ~/.julia/artifacts -jobs: - fast_finish: true - allow_failures: - - julia: nightly - include: - - stage: Documentation - julia: 1 - script: | - julia --project=docs -e ' - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate() - using Documenter: DocMeta, doctest - using GraphMatFun - DocMeta.setdocmeta!(GraphMatFun, :DocTestSetup, :(using GraphMatFun); recursive=true) - doctest(GraphMatFun) - include("docs/make.jl")' - after_success: skip -after_success: - - | - julia -e ' - using Pkg - Pkg.add("Coverage") - using Coverage - Codecov.submit(process_folder())' From 3395b38c8b2923d477af74dafbb020857a33d3b6 Mon Sep 17 00:00:00 2001 From: Massimiliano Fasi Date: Wed, 13 Jul 2022 13:25:28 +0100 Subject: [PATCH 2/3] Run CompatHelper once a day rather than once every hour --- .github/workflows/CompatHelper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 401d4f6..19f9f86 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -2,7 +2,7 @@ name: CompatHelper on: schedule: - - cron: '00 * * * *' + - cron: '0 0 * * *' issues: types: [opened, reopened] From 565b67878ccfd1eef489af9c5226d8ad6bec31dd Mon Sep 17 00:00:00 2001 From: Massimiliano Fasi Date: Wed, 13 Jul 2022 13:32:53 +0100 Subject: [PATCH 3/3] Update badges in README.md --- LICENSE => LICENSE.md | 0 README.md | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename LICENSE => LICENSE.md (100%) diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/README.md b/README.md index 12896f6..0eeb75b 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://matrixfunctions.github.io/GraphMatFun.jl/stable) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://matrixfunctions.github.io/GraphMatFun.jl/dev) -[![Build Status](https://travis-ci.com/matrixfunctions/GraphMatFun.jl.svg?token=1D6L5XDzryqshBZ5ijUH&branch=main)](https://travis-ci.com/matrixfunctions/GraphMatFun.jl) +[![Tests](https://img.shields.io/github/workflow/status/matrixfunctions/GraphMatFun.jl/ContinuousIntegration?label=tests)](https://github.com/matrixfunctions/GraphMatFun.jl/actions/workflows/ContinuousIntegration.yml) [![codecov](https://codecov.io/gh/matrixfunctions/GraphMatFun.jl/branch/main/graph/badge.svg?token=ZTKNBNMDEZ)](https://codecov.io/gh/matrixfunctions/GraphMatFun.jl) +[![GitHub](https://img.shields.io/github/license/matrixfunctions/GraphMatFun.jl)](LICENSE.md) This package contains functionality to represent, manipulate and optimize algorithms for matrix functions using directed acyclic graphs. It also contains code generate features for other languages (Julia, MATLAB, C/BLAS). @@ -22,4 +23,4 @@ julia> ] (v1.7) pkg> add GraphMatFun ``` -You can now follow the examples in the [online package documentation](https://matrixfunctions.github.io/GraphMatFun.jl/dev/). \ No newline at end of file +You can now follow the examples in the [online package documentation](https://matrixfunctions.github.io/GraphMatFun.jl/dev/).