From bb4e7d1f494e77f1ce68105d60bbb01c4b208d00 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Sat, 24 Apr 2021 16:21:43 +0800 Subject: [PATCH] [CI] update CI configs (#34) --- .github/workflows/CompatHelper.yml | 17 +++++++++++++---- .github/workflows/juliapackage.yml | 28 +++++++--------------------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index b57619a..d7c63f6 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,5 +1,4 @@ name: CompatHelper - on: schedule: - cron: '00 00 * * *' @@ -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 }} diff --git a/.github/workflows/juliapackage.yml b/.github/workflows/juliapackage.yml index 3645c02..e277021 100644 --- a/.github/workflows/juliapackage.yml +++ b/.github/workflows/juliapackage.yml @@ -1,6 +1,8 @@ name: Unit test on: + create: + tags: push: branches: - master @@ -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: @@ -21,7 +23,6 @@ jobs: uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.julia-version }} - - name: Cache artifacts uses: actions/cache@v1 env: @@ -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