From 2c01c0b637c5fe6293e2e840116a1554e634171a Mon Sep 17 00:00:00 2001 From: Cecile Ane Date: Fri, 30 Apr 2021 11:06:48 -0500 Subject: [PATCH] migration travis-ci -> github actions for test+doc --- .github/workflows/CompatHelper.yml | 1 + .github/workflows/TagBot.yml | 1 + .github/workflows/ci.yml | 68 ++++++++++++++++++++++++++++++ .travis.yml | 35 --------------- README.md | 2 +- 5 files changed, 71 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 0253383..46f9da5 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -13,4 +13,5 @@ jobs: - name: CompatHelper.main() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 778c06f..f49313b 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -12,3 +12,4 @@ jobs: - uses: JuliaRegistries/TagBot@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..95a6d9c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,68 @@ +name: CI +on: + pull_request: + branches: + - master + 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' # will expand to the latest stable 1.x release of Julia. + os: + - ubuntu-latest + - macos-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 + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: '1' + - run: | + julia --project=docs -e ' + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate() + Pkg.build("QuartetNetworkGoodnessFit")' + - run: | + julia --project=docs -e ' + using Documenter: doctest + using QuartetNetworkGoodnessFit + doctest(QuartetNetworkGoodnessFit)' + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 96da3ff..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx -julia: - - 1.6 - -notifications: - email: false -git: - depth: 99999999 - -## uncomment and modify the following lines to manually install system packages -#addons: -# apt: # apt-get for linux -# packages: -# - gfortran - -# before_install: - -codecov: true -coveralls: true - -jobs: - include: - - stage: "Documentation" - julia: 1.6 - os: linux - script: - - julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); - Pkg.develop(PackageSpec(path=pwd())); - Pkg.build("QuartetNetworkGoodnessFit")' - - julia --project=docs/ docs/make.jl - after_success: skip diff --git a/README.md b/README.md index 44f6698..874751c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.com/cecileane/QuartetNetworkGoodnessFit.jl.svg?branch=master)](https://travis-ci.com/cecileane/QuartetNetworkGoodnessFit.jl) +[![Build status](https://github.com/cecileane/QuartetNetworkGoodnessFit.jl/workflows/CI/badge.svg?branch=master)](https://github.com/cecileane/QuartetNetworkGoodnessFit.jl/actions) [![Coverage Status](https://coveralls.io/repos/cecileane/QuartetNetworkGoodnessFit.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/cecileane/QuartetNetworkGoodnessFit.jl?branch=master) [![codecov.io](http://codecov.io/github/cecileane/QuartetNetworkGoodnessFit.jl/coverage.svg?branch=master)](http://codecov.io/github/cecileane/QuartetNetworkGoodnessFit.jl?branch=master)