kernel_vector (#107) #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: # run on push to main | |
branches: [ main ] | |
pull_request: # run on PR against main | |
branches: [ main ] | |
workflow_dispatch: # run on button-press in Actions tab | |
concurrency: # only allow the most recent workflow to execute | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: # environment variables | |
julia_version: 'nightly' # julia version to use on all runners (except cross-platform) | |
jobs: # run in parallel within workflow | |
unit-and-doc-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: # run in series within job | |
- name: checkout commit | |
uses: actions/checkout@main | |
- name: set up Julia | |
uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ env.julia_version }} | |
- name: build package | |
uses: julia-actions/julia-buildpkg@latest | |
- name: test # run the unit tests | |
run: julia --project --color=yes --code-coverage -e 'import Pkg; Pkg.test(coverage=true)' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
- name: process test coverage | |
uses: julia-actions/julia-processcoverage@v1 | |
- name: upload coverage report | |
uses: codecov/codecov-action@v2 | |
with: | |
verbose: true | |
distributed-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: checkout commit | |
uses: actions/checkout@main | |
- name: set up Julia | |
uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ env.julia_version }} | |
- name: build package | |
uses: julia-actions/julia-buildpkg@latest | |
- name: test | |
run: julia --color=yes --project test/distributed.jl |