From ad8d5fbc81a4b7bb616b77f839850b924e2f7190 Mon Sep 17 00:00:00 2001 From: Tamas Nagy Date: Thu, 29 Sep 2022 13:49:26 -0700 Subject: [PATCH] update ci to use github actions --- .github/workflows/CI.yml | 49 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 20 ---------------- Project.toml | 2 +- README.md | 8 ++++++- 4 files changed, 57 insertions(+), 22 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..2c4d7a4 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,49 @@ +name: CI +on: + push: + branches: + - master + tags: + - 'v*' + pull_request: + branches: + - master +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.6' + - '1' + - '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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b3cecd5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx - - windows -julia: - - 1 - - nightly -notifications: - email: - - github@tamasnagy.com - -matrix: - allow_failures: - - julia: nightly - -after_success: - # push coverage results to Codecov - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' diff --git a/Project.toml b/Project.toml index 28af466..8708b78 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FCSFiles" uuid = "d76558cf-badf-52d4-a17e-381ab0b0d937" -version = "0.1.4" +version = "0.1.5" [deps] FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" diff --git a/README.md b/README.md index a1fc8d3..2d6161f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Add FileIO.jl integration for FCS files | Stable release | Repo status | |--------------------------------------------------|--------------| -| ![](https://juliahub.com/docs/FCSFiles/version.svg) | [![Build Status](https://travis-ci.org/tlnagy/FCSFiles.jl.svg?branch=master)](https://travis-ci.org/tlnagy/FCSFiles.jl) [![codecov.io](http://codecov.io/github/tlnagy/FCSFiles.jl/coverage.svg?branch=master)](http://codecov.io/github/tlnagy/FCSFiles.jl?branch=master) | +| ![](https://juliahub.com/docs/FCSFiles/version.svg) | [![][ci-img]][ci-url] [![][codecov-img]][codecov-url] | ## Usage @@ -38,3 +38,9 @@ julia> draw(PNG("example.png", 10cm, 7cm, dpi=300), p) ``` ![](example.png) + +[ci-img]: https://github.com/tlnagy/FCSFiles.jl/workflows/CI/badge.svg +[ci-url]: https://github.com/tlnagy/FCSFiles.jl/actions + +[codecov-img]: https://codecov.io/gh/tlnagy/TiffImages.jl/branch/master/graph/badge.svg +[codecov-url]: https://codecov.io/gh/tlnagy/TiffImages.jl \ No newline at end of file