diff --git a/.github/workflows/UnitTest.yml b/.github/workflows/UnitTest.yml new file mode 100644 index 00000000..82feeed5 --- /dev/null +++ b/.github/workflows/UnitTest.yml @@ -0,0 +1,52 @@ +name: Unit test + +on: + create: + tags: + push: + branches: + - master + pull_request: + schedule: + - cron: '20 00 1 * *' + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.0', '1', 'nightly'] + os: [ubuntu-latest, windows-latest, macOS-latest] + julia-arch: [x64] + # only test one 32-bit job + include: + - os: ubuntu-latest + julia-version: '1' + julia-arch: x86 + + steps: + - uses: actions/checkout@v1.0.0 + - name: "Set up Julia" + uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + + - name: Cache artifacts + 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 }}- + - name: "Unit Test" + uses: julia-actions/julia-runtest@master + + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 43e186e2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: julia - -os: - - linux - - osx - -julia: - - 1.0 - - 1 - - nightly - -notifications: - email: false - -after_success: - # push coverage results to Codecov - - julia -e 'using Pkg, OffsetArrays; cd(joinpath(dirname(pathof(OffsetArrays)), "..")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' diff --git a/README.md b/README.md index a5c8f184..b514cab9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # OffsetArrays.jl -[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaArrays.github.io/OffsetArrays.jl/stable) -[![Build Status](https://travis-ci.org/JuliaArrays/OffsetArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/OffsetArrays.jl) -[![codecov.io](http://codecov.io/github/JuliaArrays/OffsetArrays.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaArrays/OffsetArrays.jl?branch=master) -[![PkgEval][pkgeval-img]][pkgeval-url] +[![][action-img]][action-url] +[![][pkgeval-img]][pkgeval-url] +[![][codecov-img]][codecov-url] +[![][docs-stable-img]][docs-stable-url] +[![][docs-dev-img]][docs-dev-url] OffsetArrays provides Julia users with arrays that have arbitrary @@ -43,5 +44,18 @@ julia> OA[-1,0], OA[1,4] (1.0, 15.0) ``` + + [pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/O/OffsetArrays.svg [pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html + +[action-img]: https://github.com/JuliaArrays/OffsetArrays.jl/workflows/Unit%20test/badge.svg +[action-url]: https://github.com/JuliaArrays/OffsetArrays.jl/actions + +[codecov-img]: https://codecov.io/github/JuliaArrays/OffsetArrays.jl/coverage.svg?branch=master +[codecov-url]: https://codecov.io/gh/JuliaArrays/OffsetArrays.jl + +[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg +[docs-stable-url]: https://juliaarrays.github.io/OffsetArrays.jl/stable/ +[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg +[docs-dev-url]: https://juliaarrays.github.io/OffsetArrays.jl/dev/ diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 96cfc7b6..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +0,0 @@ -environment: - matrix: - - julia_version: 1.0 - - julia_version: 1 - - julia_version: nightly - -platform: - - x86 # 32-bit - - x64 # 64-bit - -## uncomment the following lines to allow failures on nightly julia -## (tests will run but not make your overall status red) -#matrix: -# allow_failures: -# - julia_version: latest - -branches: - only: - - master - - /release-.*/ - -notifications: - - provider: Email - on_build_success: false - on_build_failure: false - on_build_status_changed: false - -install: - - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1")) - -build_script: - - echo "%JL_BUILD_SCRIPT%" - - C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%" - -test_script: - - echo "%JL_TEST_SCRIPT%" - - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"