From 4cfa8c45e1c1d2d35cc61cd2dbe6bf0f9ca6b2f8 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 20 Aug 2021 15:53:17 +0800 Subject: [PATCH] upgrade CompatHelper and UnitTest CI settings (#58) - upgrade CompatHelper version - for macOS/Windows platform, only run Julia 1 test to save CI credits - remove unittest cron jobs to avoid from being disabled after 30/60 days inactivity --- .github/workflows/CompatHelper.yml | 24 ++++++++++++++---------- .github/workflows/UnitTest.yml | 13 ++++++++++--- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index b57619a..15892cc 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -7,17 +7,21 @@ on: jobs: CompatHelper: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: [1.2.0] - julia-arch: [x86] - os: [ubuntu-latest] + runs-on: ubuntu-latest steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() + - name: "Install CompatHelper" + run: | + import Pkg + name = "CompatHelper" + uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" + version = "2" + Pkg.add(; name, uuid, version) + shell: julia --color=yes {0} + - name: "Run CompatHelper" + run: | + import CompatHelper + CompatHelper.main() + shell: julia --color=yes {0} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMPATHELPER_PRIV: ${{ secrets.TAGBOT }} - run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/UnitTest.yml b/.github/workflows/UnitTest.yml index ba079b0..436c742 100644 --- a/.github/workflows/UnitTest.yml +++ b/.github/workflows/UnitTest.yml @@ -7,16 +7,23 @@ on: branches: - master pull_request: - schedule: - - cron: '20 00 1 * *' jobs: test: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: julia-version: ['1.0', '1', 'nightly'] - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest] + arch: [x64] + include: + - os: windows-latest + julia-version: '1' + arch: x64 + - os: macOS-latest + julia-version: '1' + arch: x64 steps: - uses: actions/checkout@v1.0.0