-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Github actions for tests and docs (#102)
* 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
Showing
5 changed files
with
92 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.