Skip to content

Commit

Permalink
[CI] update CI configs (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 authored Apr 24, 2021
1 parent f6f0dd1 commit bb4e7d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'
Expand All @@ -14,9 +13,19 @@ jobs:
julia-arch: [x86]
os: [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 }}
Expand Down
28 changes: 7 additions & 21 deletions .github/workflows/juliapackage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Unit test

on:
create:
tags:
push:
branches:
- master
Expand All @@ -12,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
julia-version: ['1.0', '1.3', 'nightly']
julia-version: ['1.0', '1', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -21,7 +23,6 @@ jobs:
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}

- name: Cache artifacts
uses: actions/cache@v1
env:
Expand All @@ -33,24 +34,9 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: "Unit Test"
uses: julia-actions/julia-runtest@master

- name: "Upload coverage report"
# since secrets aren't passed by a PR from another fork, we don't upload
# coverage for such PRs
if: startsWith(matrix.os, 'ubuntu')
run: |
if [[ ! -z $CODECOV_TOKEN ]]; then \
julia -e 'using Pkg; Pkg.add("Coverage")' ; \
julia -e 'using Coverage; Codecov.submit_local(process_folder())' ; \
fi
env:
# unless tokenless upload is enabled, we can only submit coverage via
# environment variable.
# See issue: https://github.com/julia-actions/julia-uploadcodecov/issues/1
#
# generated from https://codecov.io/gh/JuliaImages/ImageQualityIndexes.jl/settings
# add it to https://github.com/JuliaImages/ImageQualityIndexes.jl/settings/secrets
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info

0 comments on commit bb4e7d1

Please sign in to comment.