mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-11-23 02:09:55 +00:00
Continuous Integration
This commit is contained in:
parent
b2ec340474
commit
282d80a758
5 changed files with 39 additions and 0 deletions
1
.codecov.yml
Normal file
1
.codecov.yml
Normal file
|
@ -0,0 +1 @@
|
|||
comment: false
|
22
.github/workflows/UnitTests.yml
vendored
Normal file
22
.github/workflows/UnitTests.yml
vendored
Normal file
|
@ -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
|
3
ci_prep.jl
Normal file
3
ci_prep.jl
Normal file
|
@ -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"))
|
2
coverage/Project.toml
Normal file
2
coverage/Project.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[deps]
|
||||
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
|
11
coverage/coverage.jl
Normal file
11
coverage/coverage.jl
Normal file
|
@ -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
|
Loading…
Reference in a new issue