-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specialize
show
for QuatVec and Rotor (#44)
Update CI
- Loading branch information
Showing
15 changed files
with
167 additions
and
101 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,75 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: ['*'] | ||
pull_request: | ||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
if: >- | ||
!contains(github.ref, 'refs/tags/') | ||
&& !contains(github.event.head_commit.message, '[skip ci]') | ||
&& !contains(github.event.head_commit.message, '[skip tests]') | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
arch: | ||
- x64 | ||
include: | ||
- version: 'nightly' | ||
os: ubuntu-latest | ||
arch: x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
show-versioninfo: true | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v2 | ||
if: "matrix.version == '1' && matrix.os == 'ubuntu-latest'" | ||
with: | ||
files: lcov.info | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
if: >- | ||
!contains(github.event.head_commit.message, '[skip ci]') | ||
&& !contains(github.event.head_commit.message, '[skip docs]') | ||
permissions: | ||
contents: write | ||
statuses: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-docdeploy@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using Quaternionic | ||
DocMeta.setdocmeta!(Quaternionic, :DocTestSetup, :(using Quaternionic); recursive=true) | ||
doctest(Quaternionic)' |
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.
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 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 |
---|---|---|
|
@@ -24,4 +24,5 @@ makedocs(; | |
deploydocs(; | ||
repo="github.com/moble/Quaternionic.jl", | ||
devbranch="main", | ||
push_preview=true, | ||
) |
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,17 @@ | ||
# Run this script from any directory as | ||
# | ||
# julia -t 4 scripts/docs.jl | ||
# | ||
# The docs will build and the browser should open automatically. `LiveServer` | ||
# will monitor the docs for any changes, then rebuild them and refresh the browser | ||
# until this script is stopped. | ||
|
||
import Dates | ||
println("Building docs starting at ", Dates.format(Dates.now(), "HH:MM:SS"), ".") | ||
|
||
using Pkg | ||
cd((@__DIR__) * "/..") | ||
Pkg.activate("docs") | ||
|
||
using LiveServer | ||
servedocs(launch_browser=true) |
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,20 @@ | ||
import Dates | ||
println("Running tests starting at ", Dates.format(Dates.now(), "HH:MM:SS"), ".") | ||
|
||
using Pkg | ||
cd((@__DIR__) * "/..") | ||
Pkg.activate(".") | ||
|
||
try | ||
Ξt = @elapsed Pkg.test("Quaternionic"; coverage=true, test_args=ARGS) | ||
println("Running tests took $Ξt seconds.") | ||
catch e | ||
println("Tests failed; proceeding to coverage") | ||
end | ||
|
||
Pkg.activate() # Activate Julia's base (home) directory | ||
using Coverage | ||
cd((@__DIR__) * "/..") | ||
coverage = Coverage.process_folder() | ||
Coverage.writefile("lcov.info", coverage) | ||
Coverage.clean_folder(".") |
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 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 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 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 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 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
Oops, something went wrong.