From c43c9bc612e9e30562d5825e061f9beb3f4cbfb5 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Fri, 20 Nov 2020 00:36:10 -0700 Subject: [PATCH 1/2] Switch from travis to GitHub Actions for CI testing --- .github/workflows/TagBot.yml | 1 + .github/workflows/ci.yml | 70 ++++++++++++++++++++++++++++++++++++ .travis.yml | 38 -------------------- README.md | 2 +- 4 files changed, 72 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 778c06fed5..f49313b662 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 0000000000..5e5e79b011 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,70 @@ +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.0' + - '1' # automatically expands to the latest stable 1.x release of Julia + - 'nightly' + os: + - ubuntu-latest + arch: + - x64 + include: + - os: ubuntu-latest + version: '1' + arch: x86 + - os: windows-latest + version: '1' + 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()' + - 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 b4e616aa93..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: julia - -julia: - - 1.0 - - 1 - - nightly - -os: - - linux - - osx - - windows - -arch: - - amd64 - - i386 - -notifications: - email: false - -after_success: - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; - Codecov.submit(Codecov.process_folder())'; - -jobs: - exclude: - - os: osx - arch: i386 - allow_failures: - - julia: nightly - include: - - stage: "Documentation" - julia: 1.0 - os: linux - script: - - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); - Pkg.instantiate()' - - julia --project=docs/ docs/make.jl - after_success: skip diff --git a/README.md b/README.md index f2374a3178..30e6d77d44 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ DataFrames.jl ============= [![Coverage Status](http://codecov.io/github/JuliaData/DataFrames.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaData/DataFrames.jl?branch=master) -[![Travis Build Status](https://travis-ci.com/JuliaData/DataFrames.jl.svg?branch=master)](https://travis-ci.com/JuliaData/DataFrames.jl) +![CI Testing](https://github.com/JuliaData/DataFrames.jl/workflows/CI/badge.svg) Tools for working with tabular data in Julia. From c7f0b322fd9ddc253c4a057def97488609f35d21 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Fri, 20 Nov 2020 09:17:14 -0700 Subject: [PATCH 2/2] Update ci --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e5e79b011..6de797902f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,12 +23,9 @@ jobs: arch: - x64 include: - - os: ubuntu-latest - version: '1' - arch: x86 - os: windows-latest version: '1' - arch: x64 + arch: x86 steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1