From db2fe93ce532264da10cdfd646eea1c2c8d6f96e Mon Sep 17 00:00:00 2001 From: Yuto Horikawa Date: Sun, 18 Feb 2024 04:17:42 +0900 Subject: [PATCH] Use GitHub actions for tests (#1103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add `.github/workflows/CI.yml` * remove travis and appveyor * add CI badge * add `julia-actions/cache@v1` Co-authored-by: Mosè Giordano --------- Co-authored-by: Mosè Giordano --- .github/workflows/CI.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 3 +-- appveyor.yml | 37 ------------------------------------- 4 files changed, 30 insertions(+), 52 deletions(-) create mode 100644 .github/workflows/CI.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..e49f6bd3 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,29 @@ +name: Run tests + +on: + push: + branches: [master] + tags: [v*] + pull_request: + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['0.7', '1.6', '1', 'nightly'] + julia-arch: [x64, x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/cache@v1 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 747f3bd3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: julia -os: - - linux - - osx -julia: - - 0.7 - - 1.0 - - nightly -notifications: - email: false -#after_success: -# - julia --color=yes -e 'cd(Pkg.dir("IJulia")); Pkg.add("Coverage"); using Coverage; -# Coveralls.submit(Coveralls.process_folder())' diff --git a/README.md b/README.md index 83ecb84c..d27dd9f0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@
IJulia logo
-[![Build Status](https://api.travis-ci.org/JuliaLang/IJulia.jl.svg)](https://travis-ci.org/JuliaLang/IJulia.jl) -[![Build status](https://ci.appveyor.com/api/projects/status/aaw818ykpducu6ue?svg=true)](https://ci.appveyor.com/project/StevenGJohnson/ijulia-jl) [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaLang.github.io/IJulia.jl/stable) [![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaLang.github.io/IJulia.jl/dev) +[![Build Status](https://github.com/JuliaLang/IJulia.jl/workflows/CI/badge.svg)](https://github.com/JuliaLang/IJulia.jl/actions?query=workflow%3ACI+branch%3Amaster) # IJulia diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index deb24246..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +0,0 @@ -environment: - matrix: - - julia_version: 0.7 - - julia_version: 1 - - julia_version: nightly - -platform: - - x86 # 32-bit - - x64 # 64-bit - -# # Uncomment the following lines to allow failures on nightly julia -# # (tests will run but not make your overall status red) -# 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%"