Skip to content

Merge pull request #185 from CliMA/szy21-patch-1 #797

Merge pull request #185 from CliMA/szy21-patch-1

Merge pull request #185 from CliMA/szy21-patch-1 #797

Workflow file for this run

name: CodeCov
on:
push:
branches:
- main
tags: '*'
pull_request:
merge_group:
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- 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/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()