Skip to content

Commit

Permalink
[CI] Collect coverage info for .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Nov 4, 2022
1 parent 3ddcea6 commit 923a52d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -183,7 +183,10 @@ jobs:
run: dotnet build
working-directory: interfaces/dotnet
- name: Test the .NET interface
run: dotnet test
# Collect coverage info using Coverlet (identified by magic string below)
run: |
dotnet test --collect:"XPlat Code Coverage"
mv Cantera.Tests/TestResults/*/coverage.cobertura.xml .
working-directory: interfaces/dotnet
- name: Process coverage files
run: |
Expand All @@ -207,7 +210,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
verbose: true
files: ./coverage.xml,./build/pycov.xml
files: ./coverage.xml,./build/pycov.xml,./interfaces/dotnet/coverage.cobertura.xml
fail_ci_if_error: true

example-keywords:
Expand Down

0 comments on commit 923a52d

Please sign in to comment.