Skip to content

Commit

Permalink
Tweaks to GHA workflows (#32)
Browse files Browse the repository at this point in the history
* Bump `julia-actions/setup-julia` version to 1.4.1

* Set `COMPATHELPER_PRIV` for CompatHelper action

Set it to `secrets.DOCUMENTER_KEY` to enable PRs opened by CompatHelper
to trigger other actions, in particular CI.

* Allow manually triggering workflows

... by adding `on: workflow_dispatch:`.

* Update coverage data submission

Use `julia-actions/julia-processcoverage` and the codecovi and coveralls
actions.
  • Loading branch information
martinholters committed Dec 4, 2020
1 parent 68e27d0 commit f8baada
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- develop
tags: '*'
pull_request:
workflow_dispatch:

jobs:
build:
Expand Down
30 changes: 23 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- master
tags: '*'
pull_request:
workflow_dispatch:

jobs:
test:
Expand All @@ -22,14 +23,29 @@ jobs:
julia-arch: x86
steps:
- uses: actions/checkout@v1.0.0
- uses: julia-actions/setup-julia@v1.1.4
- uses: julia-actions/setup-julia@v1.4.1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-runtest@v0.1.0
- uses: julia-actions/julia-uploadcodecov@v0.1.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: julia-actions/julia-uploadcoveralls@v0.1.0
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
- uses: coverallsapp/github-action@master
with:
path-to-lcov: lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.os }}-${{ matrix.julia-version }}-${{ matrix.julia-arch }}
parallel: true

finish:
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
2 changes: 2 additions & 0 deletions .github/workflows/compathelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: CompatHelper
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
CompatHelper:
Expand All @@ -16,4 +17,5 @@ jobs:
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'

0 comments on commit f8baada

Please sign in to comment.