Skip to content

Commit

Permalink
upgrade CompatHelper and UnitTest CI settings (#58)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
johnnychen94 authored Aug 20, 2021
1 parent eb3ce5c commit 4cfa8c4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()'
13 changes: 10 additions & 3 deletions .github/workflows/UnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cfa8c4

Please # to comment.