diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml new file mode 100644 index 0000000..d33b1d7 --- /dev/null +++ b/.github/workflows/UnitTesting.yml @@ -0,0 +1,44 @@ +name: Unit tests + +on: + - push + - pull_request + +jobs: + test: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + julia-version: + - '1.0' # LTS + - '1' + julia-arch: [x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + experimental: [false] + include: + - julia-version: nightly + julia-arch: x86 + os: ubuntu-latest + experimental: true + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Setup Julia + uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + - name: Run Tests + uses: julia-actions/julia-runtest@latest + - name: Create CodeCov + uses: julia-actions/julia-processcoverage@v1 + - name: Upload CodeCov + uses: codecov/codecov-action@v1 + with: + file: ./lcov.info + flags: unittests + name: codecov-umbrella + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 99fe92d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx - - windows -julia: - - 1.3 - - 1.4 - - nightly -notifications: - email: benjward@protonmail.com - -## uncomment the following lines to allow failures on nightly julia -## (tests will run but not make your overall status red) -matrix: - allow_failures: - - julia: nightly - -## uncomment and modify the following lines to manually install system packages -#addons: -# apt: # apt-get for linux -# packages: -# - gfortran -#before_script: # homebrew for mac -# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi - -## uncomment the following lines to override the default test script -script: - - julia -e 'using Pkg; Pkg.build(); Pkg.test("KmerAnalysis", coverage = true)' -after_success: - - julia --project=coverage/ -e 'using Pkg; Pkg.instantiate()' - - julia --project=coverage/ coverage/coverage.jl - -#jobs: -# include: -# - stage: "Documentation" -# julia: 1.2 -# os: linux -# script: -# - julia -e 'using Pkg.Registry; Registry.add(Registry.RegistrySpec(url = "https://github.com/BioJulia/BioJuliaRegistry.git"))' -# - julia -e 'using Pkg.Registry; Registry.add(Registry.RegistrySpec(url = "https://github.com/JuliaRegistries/General.git"))' -# - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' -# - julia --project=docs/ docs/make.jl -# after_success: skip \ No newline at end of file diff --git a/Project.toml b/Project.toml index 1cbafb0..09d95b5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "KmerAnalysis" uuid = "a20136b7-8e32-4c10-91d3-7060c0bd8ec7" authors = ["Ben J. Ward "] -version = "0.2.0" +version = "0.3.0" [deps] BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59" @@ -11,7 +11,7 @@ ReadDatastores = "70a005b8-9d8a-11e9-0d98-c909fa2e52d2" [compat] BioSequences = "2" ReadDatastores = "0.3, 0.4" -julia = "1.3" +julia = "1" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/coverage/Project.toml b/coverage/Project.toml deleted file mode 100644 index 6a35f35..0000000 --- a/coverage/Project.toml +++ /dev/null @@ -1,2 +0,0 @@ -[deps] -Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037" \ No newline at end of file diff --git a/coverage/coverage.jl b/coverage/coverage.jl deleted file mode 100644 index fe5762b..0000000 --- a/coverage/coverage.jl +++ /dev/null @@ -1,9 +0,0 @@ -# Only run coverage from linux nightly build on travis. -#get(ENV, "TRAVIS_OS_NAME", "") == "linux" || exit() -#get(ENV, "TRAVIS_JULIA_VERSION", "") == "nightly" || exit() - -using Coverage - -cd(joinpath(@__DIR__, "..")) do - Codecov.submit(Codecov.process_folder()) -end \ No newline at end of file