diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..69cb760 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1 @@ +comment: false diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml new file mode 100644 index 0000000..cbaf083 --- /dev/null +++ b/.github/workflows/UnitTests.yml @@ -0,0 +1,22 @@ +name: Unit tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.1', '1.2', '1.3'] + julia-arch: [x64] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1.0.0 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - name: Install dependencies + run: julia ci_prep.jl + - uses: julia-actions/julia-runtest@master diff --git a/ci_prep.jl b/ci_prep.jl new file mode 100644 index 0000000..f3a7535 --- /dev/null +++ b/ci_prep.jl @@ -0,0 +1,3 @@ +using Pkg.Registry +Registry.add(Registry.RegistrySpec(url = "https://github.com/BioJulia/BioJuliaRegistry.git")) +Registry.add(Registry.RegistrySpec(url = "https://github.com/JuliaRegistries/General.git")) diff --git a/coverage/Project.toml b/coverage/Project.toml new file mode 100644 index 0000000..4fbdc47 --- /dev/null +++ b/coverage/Project.toml @@ -0,0 +1,2 @@ +[deps] +Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037" diff --git a/coverage/coverage.jl b/coverage/coverage.jl new file mode 100644 index 0000000..3d33ed9 --- /dev/null +++ b/coverage/coverage.jl @@ -0,0 +1,11 @@ +get(ENV, "TRAVIS_OS_NAME", "") == "linux" || exit() +get(ENV, "TRAVIS_JULIA_VERSION", "") == "1.3" || exit() + +using Pkg +Pkg.instantiate() + +using Coverage + +cd(joinpath(@__DIR__, "..")) do + Codecov.submit(Codecov.process_folder()) +end