Skip to content

Commit

Permalink
Moved to Github Actions (#1)
Browse files Browse the repository at this point in the history
* argmax(f, itr) provided by Compat.jl

* Compat bounds

* Moved to Github Actions

* Fixed documentation build

* Drop Julia < 1.3

* Fixed documentation
  • Loading branch information
jagot authored Apr 12, 2021
1 parent a615f14 commit f5587bb
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 381 deletions.
31 changes: 0 additions & 31 deletions .appveyor.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI
on:
- push
- pull_request
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'
- '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: 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"add PyCall PyPlot https://github.com/jagot/Jagot.jl.git https://github.com/jagot/PyPlotRecipes.jl.git Colors SpecialFunctions LinearAlgebra"
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
env:
PYTHON: ""
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
doctests:
name: Doctests
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()'
- name: Run Doctests
# See https://github.com/actions/toolkit/issues/399
continue-on-error: true
run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using MatrixPolynomials
DocMeta.setdocmeta!(MatrixPolynomials, :DocTestSetup, :(using MatrixPolynomials); recursive=true)
doctest(MatrixPolynomials)'
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
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 }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"

[deps]
ArnoldiMethod = "ec485272-7323-5ecc-a04f-4719b315124d"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Expand All @@ -13,7 +14,13 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
UnicodeFun = "1cfade01-22cf-5700-b092-accc4b62d6e1"

[compat]
julia = "1.2"
ArnoldiMethod = "0.2.0"
Compat = "3.26.0"
Formatting = "0.4"
Parameters = "0.12"
SpecialFunctions = "1.3"
UnicodeFun = "0.4"
julia = "1.3"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://jagot.github.io/MatrixPolynomials.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://jagot.github.io/MatrixPolynomials.jl/dev)
[![Build Status](https://travis-ci.org/jagot/MatrixPolynomials.jl.svg?branch=master)](https://travis-ci.org/jagot/MatrixPolynomials.jl)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/jagot/MatrixPolynomials.jl?svg=true)](https://ci.appveyor.com/project/jagot/MatrixPolynomials-jl)
[![Codecov](https://codecov.io/gh/jagot/MatrixPolynomials.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jagot/MatrixPolynomials.jl)
[![Build Status](https://github.com/jagot/MatrixPolynomials.jl/workflows/CI/badge.svg)](https://github.com/jagot/MatrixPolynomials.jl/actions)
[![Coverage](https://codecov.io/gh/jagot/MatrixPolynomials.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jagot/MatrixPolynomials.jl)

This package aids in the computation of the action of a matrix
polynomial on a vector, i.e. `p(A)v`, where `A` is a (square) matrix
Expand Down
Loading

2 comments on commit f5587bb

@jagot
Copy link
Owner Author

@jagot jagot commented on f5587bb Apr 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/34074

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" f5587bb69b31cac2d635d9d1c0199076b287e075
git push origin v0.1.0

Please sign in to comment.