Skip to content

Commit

Permalink
Use Github actions for tests and docs (#102)
Browse files Browse the repository at this point in the history
* Add ci.yml and docs.yml (GitHub actions)

* Test Julia v1.3 and not v1.0

IntervalArithmetics.kl requires >= v1.3

* Remove  .travis.yml and appveyor.yml

* Use CI and Coverage badges...

and remove those of travis and appveyor
  • Loading branch information
lbenet committed Mar 10, 2021
1 parent 4fadc64 commit 32297dd
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 86 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
paths-ignore:
- 'LICENSE.md'
- 'README.md'
branches:
- master
pull_request:
branches:
- master
tags: '*'

jobs:
test:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
fail-fast: false
matrix:
julia-version: ['1.3', '1', 'nightly']
julia-arch: [x64]
os: [ubuntu-latest, macOS-latest, windows-latest]
# # 32-bit Julia binaries are not available on macOS
# exclude:
# - os: macOS-latest
# julia-arch: x86

steps:
- uses: actions/checkout@v2
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-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
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: julia-actions/julia-runtest@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: julia-actions/julia-processcoverage@v1
- uses: coverallsapp/github-action@master
with:
path-to-lcov: lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Documentation

on:
push:
branches:
- 'master'
paths-ignore:
- 'LICENSE.md'
- 'README.md'
tags: '*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg;
Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# TaylorModels

[![travis badge][travis_badge]][travis_url]
[![appveyor badge][appveyor_badge]][appveyor_url]
[![codecov badge][codecov_badge]][codecov_url]
[![CI][CI_badge]][CI_url]
[![Coverage Status][Coverage_badge]][Coverage_url]

<!-- [![codecov badge][codecov_badge]][codecov_url] -->

[![docs stable][docsbadge_stable]][documenter_stable]
[![docs latest][docsbadge_latest]][documenter_latest]

[CI_badge]: https://github.com/JuliaIntervals/TaylorModels.jl/actions/workflows/ci.yml/badge.svg
[CI_url]: https://github.com/JuliaIntervals/TaylorModels.jl/actions/workflows/ci.yml

[travis_badge]: https://travis-ci.org/JuliaIntervals/TaylorModels.jl.svg?branch=master
[travis_url]: https://travis-ci.org/JuliaIntervals/TaylorModels.jl
[Coverage_badge]: https://coveralls.io/repos/github/JuliaIntervals/TaylorModels.jl/badge.svg?branch=lb/github_actions
[Coverage_url]: https://coveralls.io/github/JuliaIntervals/TaylorModels.jl?branch=lb/github_actions

[appveyor_badge]: https://ci.appveyor.com/api/projects/status/github/dpsanders/TaylorModels.jl?svg=true&branch=master
[appveyor_url]: https://ci.appveyor.com/project/dpsanders/taylormodels-jl-8keb2

[codecov_badge]: http://codecov.io/github/JuliaIntervals/TaylorModels.jl/coverage.svg?branch=master
[codecov_url]: http://codecov.io/github/JuliaIntervals/TaylorModels.jl?branch=master
<!-- [codecov_badge]: http://codecov.io/github/JuliaIntervals/TaylorModels.jl/coverage.svg?branch=master
[codecov_url]: http://codecov.io/github/JuliaIntervals/TaylorModels.jl?branch=master -->

[docsbadge_stable]: https://img.shields.io/badge/docs-stable-blue.svg
[documenter_stable]: https://juliaintervals.github.io/TaylorModels.jl/stable
Expand Down
42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

0 comments on commit 32297dd

Please sign in to comment.