From b6a0a1aba3a4748de5c9622793880d0728908ac1 Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Thu, 4 Nov 2021 16:07:43 +0100 Subject: [PATCH] Replaced Travis CI and AppVeyor with GitHub Actions * Updated package from PkgTemplates template. * Dropped Julia 0.7 support. * Added testing on Julia 1.3 on GitLab CI. * Dropped Coveralls coverage. * Updated compat entries. --- .appveyor.yml | 32 ------------------- .github/workflows/CI.yml | 51 ++++++++++++++++++++++++++++++ .github/workflows/CompatHelper.yml | 16 ++++++++++ .github/workflows/TagBot.yml | 15 +++++++++ .github/workflows/register.yml | 14 ++++++++ .gitignore | 3 +- .gitlab-ci.yml | 7 +++- .travis.yml | 19 ----------- LICENSE | 2 ++ Project.toml | 3 +- README.md | 7 ++-- REQUIRE | 1 - 12 files changed, 110 insertions(+), 60 deletions(-) delete mode 100644 .appveyor.yml create mode 100644 .github/workflows/CI.yml create mode 100644 .github/workflows/CompatHelper.yml create mode 100644 .github/workflows/TagBot.yml create mode 100644 .github/workflows/register.yml delete mode 100644 .travis.yml delete mode 100644 REQUIRE diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 8850d76..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,32 +0,0 @@ -# Documentation: https://github.com/JuliaCI/Appveyor.jl -environment: - matrix: - - julia_version: 0.7 - - julia_version: 1.0 - - julia_version: nightly -platform: - - x86 - - x64 -matrix: - allow_failures: - - julia_version: nightly -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/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..2134745 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,51 @@ +name: CI +on: + push: + branches: + - main + tags: '*' + pull_request: +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +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.3' + - '1.6' + 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@v2 + with: + files: lcov.info diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..cba9134 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +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 }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..f49313b --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,15 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/register.yml b/.github/workflows/register.yml new file mode 100644 index 0000000..6e71f2f --- /dev/null +++ b/.github/workflows/register.yml @@ -0,0 +1,14 @@ +name: Register Package +on: + workflow_dispatch: + inputs: + version: + description: Version to register or component to bump + required: true +jobs: + register: + runs-on: ubuntu-latest + steps: + - uses: julia-actions/RegisterAction@latest + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 19a1bd1..abc7cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.DS_Store -*.jl.cov *.jl.*.cov +*.jl.cov *.jl.mem diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65032ca..af324e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ include: - project: 'ihp/julia/julia-gitlab-ci-templates' - ref: v1.0.0 + ref: v1.1.0 file: '/.gitlab-ci_template.yaml' test:1.0: @@ -8,6 +8,11 @@ test:1.0: - .julia:1.0 - .julia.test.basic +test:1.3: + extends: + - .julia:1.3 + - .julia.test.basic + test:1.6: extends: - .julia:1.6 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 19e0f1e..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: - - 0.7 - - 1.0 - - 1.1 - - nightly -matrix: - allow_failures: - - julia: nightly - fast_finish: true -notifications: - email: false -after_success: - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())' diff --git a/LICENSE b/LICENSE index e92fa11..0ef6b88 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,5 @@ +MIT License + Copyright (c) 2018 IHP Systems A/S Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/Project.toml b/Project.toml index 9f84a55..1a434ad 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,8 @@ authors = ["IHP Systems R&D "] version = "0.4.0" [compat] -julia = "1.0" +julia = "1" +ResourcePools = "0.1.0" [deps] ResourcePools = "16787047-0d73-522e-b8c7-4a818d739b35" diff --git a/README.md b/README.md index 150c21f..38e7cce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Cameras -[![Build Status](https://travis-ci.com/IHPSystems/Cameras.jl.svg?branch=master)](https://travis-ci.com/IHPSystems/Cameras.jl) -[![Build Status](https://ci.appveyor.com/api/projects/status/github/IHPSystems/Cameras.jl?svg=true)](https://ci.appveyor.com/project/IHPSystems/Cameras-jl) -[![Codecov](https://codecov.io/gh/IHPSystems/Cameras.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/IHPSystems/Cameras.jl) -[![Coveralls](https://coveralls.io/repos/github/IHPSystems/Cameras.jl/badge.svg?branch=master)](https://coveralls.io/github/IHPSystems/Cameras.jl?branch=master) +[![Build Status](https://github.com/IHPSystems/Cameras.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/IHPSystems/Cameras.jl/actions/workflows/CI.yml?query=branch%3Amain) +[![Coverage](https://codecov.io/gh/IHPSystems/Cameras.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/IHPSystems/Cameras.jl) +[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle) diff --git a/REQUIRE b/REQUIRE deleted file mode 100644 index 859ad46..0000000 --- a/REQUIRE +++ /dev/null @@ -1 +0,0 @@ -julia 0.7