diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a58c570 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: CI + +on: + push: + branches: + - main + - dev + pull_request: + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, 'skip ci')" + strategy: + fail-fast: false + matrix: + version: + - '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 + - uses: julia-actions/julia-uploadcoveralls@v1 + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} diff --git a/README.md b/README.md index 88d9f8d..583c29d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Postprocessing -[![Build Status](https://travis-ci.com/ranocha/Postprocessing.jl.svg?branch=master)](https://travis-ci.com/ranocha/Postprocessing.jl) -[![Build Status](https://ci.appveyor.com/api/projects/status/github/ranocha/Postprocessing.jl?svg=true)](https://ci.appveyor.com/project/ranocha/Postprocessing-jl) +[![Build Status](https://github.com/ranocha/Postprocessing.jl/workflows/CI/badge.svg)](https://github.com/ranocha/Postprocessing.jl/actions) [![Codecov](https://codecov.io/gh/ranocha/Postprocessing.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/ranocha/Postprocessing.jl) [![Coveralls](https://coveralls.io/repos/github/ranocha/Postprocessing.jl/badge.svg?branch=master)](https://coveralls.io/github/ranocha/Postprocessing.jl?branch=master) diff --git a/.appveyor.yml b/appveyor.yml similarity index 95% rename from .appveyor.yml rename to appveyor.yml index 88342a3..762a717 100644 --- a/.appveyor.yml +++ b/appveyor.yml @@ -1,26 +1,34 @@ # Documentation: https://github.com/JuliaCI/Appveyor.jl + environment: matrix: - - julia_version: 1.4 + - julia_version: 1 + platform: - x64 + 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%" + on_success: - echo "%JL_CODECOV_SCRIPT%" - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%" diff --git a/.travis.yml b/outdated/.travis.yml similarity index 100% rename from .travis.yml rename to outdated/.travis.yml