From 03cb04f94dada0c4115d19c7c3be4821bafd349d Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Thu, 24 Dec 2020 09:43:05 -0600 Subject: [PATCH] Switch to GitHub Actions for CI --- .github/workflows/CI.yml | 47 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 21 ------------------ 2 files changed, 47 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..452959d --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,47 @@ +name: CI +on: + pull_request: + push: + branches: + - master + tags: '*' +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.3' + - '1.4' + - '1.5' +# - '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@v1 + - uses: julia-actions/julia-runtest@v1 + - 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 b7d8420..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: julia -os: - - linux - - osx -julia: - - 1.3 - - 1.4 - - 1.5 - - nightly -matrix: - fast_finish: true - allow_failures: - - julia: nightly -notifications: - email: false -#script: # the default script is equivalent to the following -# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi -# - julia -e 'Pkg.clone(pwd()); Pkg.build("AccurateArithmetic"); Pkg.test("AccurateArithmetic"; coverage=true)'; -# after_success: -# - julia -e 'cd(Pkg.dir("AccurateArithmetic")); ps=Pkg.PackageSpec(name="Documenter", version="0.24.4"); Pkg.add(ps); Pkg.pin(ps); using Documenter; include(joinpath("docs", "make.jl"))'; -# - julia -e 'cd(Pkg.dir("AccurateArithmetic")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';