Add Codecov upload token to github action #28
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: "1.10" | |
- name: Update registries | |
run: | | |
julia -e "using Pkg; Pkg.update()" | |
- name: Build packages | |
run: julia --project -e 'import Pkg; Pkg.build(); Pkg.precompile()' | |
- name: Run test with coverage | |
run: julia --project --check-bounds=yes -e 'import Pkg; Pkg.test(; coverage=true, julia_args=`--inline=no`)' | |
env: | |
JULIA_NUM_THREADS: "2" | |
- name: Submit coverage | |
run: | | |
julia -e 'using Pkg; Pkg.add("Coverage")' | |
julia -e 'using Coverage; Codecov.submit(Codecov.process_folder())' | |
- name: Documentation | |
run: | | |
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
julia --project=docs/ docs/make.jl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |