From 60194984b6b5ac71370f572d65f390e064d1d666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Wed, 20 Oct 2021 15:36:56 +0200 Subject: [PATCH 1/3] GH actions CI --- .github/workflows/CompatHelper.yml | 16 +++++++++++ .github/workflows/TagBot.yml | 12 ++++++++ .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .github/workflows/CompatHelper.yml create mode 100644 .github/workflows/TagBot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..905ed28 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper + +on: + schedule: + - cron: 0 * * * * + +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: julia -e 'using CompatHelper; CompatHelper.main()' \ No newline at end of file diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..2f78ec6 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,12 @@ +name: TagBot +on: + schedule: + - cron: 30 * * * * + workflow_dispatch: +jobs: + TagBot: + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..92ca689 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +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' + os: + - ubuntu-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 From af914ea4b3db50873e699aae5c7ff00f5f7f40d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Wed, 20 Oct 2021 15:37:50 +0200 Subject: [PATCH 2/3] removed unused .files --- .codecov.yml | 1 - .travis.yml | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 .codecov.yml delete mode 100644 .travis.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 69cb760..0000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 74d1848..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux -# - osx -julia: - - 1.0 - - nightly - -jobs: - allow_failures: - - julia: nightly - -notifications: - email: false - -after_success: - # push coverage results to Codecov - - julia -e 'using Pkg; import StaticGraphs; cd(joinpath(dirname(pathof(StaticGraphs)), "..")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' From 12d48af46f1279787ff89c3790eb8c8e744cccca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Wed, 20 Oct 2021 15:38:50 +0200 Subject: [PATCH 3/3] up readme with actions --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b3e077..49cc164 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # StaticGraphs -[![Build Status](https://travis-ci.org/JuliaGraphs/StaticGraphs.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphs/StaticGraphs.jl) - +[![Build Status](https://github.com/JuliaGraphs/StaticGraphs.jl/workflows/CI/badge.svg)](https://github.com/JuliaGraphs/StaticGraphs.jl/actions?query=workflow%3ACI+branch%3Amaster) [![codecov.io](http://codecov.io/github/JuliaGraphs/StaticGraphs.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaGraphs/StaticGraphs.jl?branch=master) Memory-efficient, performant graph structures optimized for large networks.