From 9ab9efec897439ee4844fdb4701f0eeff11ad314 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 18 Dec 2020 01:29:09 -0600 Subject: [PATCH] Switch from Travis CI to GitHub Actions (#37) --- .github/workflows/CI.yml | 47 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 19 ---------------- README.md | 3 +-- 3 files changed, 48 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/CI.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..2d63318 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,47 @@ +name: CI +on: + pull_request: + push: + branches: master + tags: "*" + schedule: + - cron: "0 0 1 * *" # First of the month, midnight UTC +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - "1.0" # LTS + - "1" # Latest release + - nightly + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - 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 }}- + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + - 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 9197e78..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx - - windows -julia: - - 1.0 - - 1 - - nightly -notifications: - email: false -# uncomment the following lines to override the default test script -#script: -# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi -# - julia -e 'Pkg.clone(pwd()); Pkg.build("MappedArrays"); Pkg.test("MappedArrays"; coverage=true)' -after_success: - # push coverage results to Codecov - - julia -e 'cd(Pkg.dir("MappedArrays")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' diff --git a/README.md b/README.md index 0bda19e..a99c881 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # MappedArrays -[![Build Status](https://travis-ci.org/JuliaArrays/MappedArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/MappedArrays.jl) - +[![CI](https://github.com/JuliaArrays/MappedArrays.jl/workflows/CI/badge.svg)](https://github.com/JuliaArrays/MappedArrays.jl/actions?query=workflow%3ACI) [![codecov.io](http://codecov.io/github/JuliaArrays/MappedArrays.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaArrays/MappedArrays.jl?branch=master) This package implements "lazy" in-place elementwise transformations of