Move parameter constructor to a package extension, use name maps #745
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: CodeCov | |
on: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
merge_group: | |
jobs: | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@latest | |
with: | |
version: 1.9 | |
- name: Test with coverage | |
env: | |
JULIA_PROJECT: "@." | |
run: | | |
julia --project=@. -e 'using Pkg; Pkg.instantiate()' | |
julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)' | |
- name: Generate coverage file | |
env: | |
JULIA_PROJECT: "@." | |
run: julia --project=@. -e 'using Pkg; Pkg.add("Coverage"); | |
using Coverage; | |
LCOV.writefile("coverage-lcov.info", Codecov.process_folder())' | |
if: success() | |
- name: Submit coverage | |
uses: codecov/[email protected] | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
if: success() | |