diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5a6517f..22561f7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,16 +31,13 @@ jobs:
- run: >-
dotnet test
-c Release --no-restore --no-build
+ /p:ContinuousIntegrationBuild=true
+ /p:CoverletOutputFormat=\"opencover,cobertura\"
-s CodeCoverage.runsettings
- --logger "trx;LogFileName=test-results-${{ steps.nbgv.outputs.Version }}.trx"
- --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura
- - uses: actions/upload-artifact@v4
- if: success() || failure()
- with:
- name: test-results
- path: |
- **/*.trx
- **/coverage.cobertura.xml
+ --collect:"XPlat Code Coverage"
+ --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
+ --
+ RunConfiguration.CollectSourceInformation=true
- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@5
with:
@@ -51,6 +48,12 @@ jobs:
with:
name: CoverageReport-${{ steps.nbgv.outputs.Version }}
path: coveragereport
+ - name: Upload coverage reports to Codecov
+ if: ${{ env.token }}
+ uses: codecov/codecov-action@v4
+ env:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ slug: georg-jung/FaceAiSharp
- run: dotnet pack -c Release --no-restore --no-build /p:ContinuousIntegrationBuild=true
- uses: actions/upload-artifact@v4
with:
diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml
deleted file mode 100644
index d9bbaf9..0000000
--- a/.github/workflows/test-report.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-name: 'Test Report'
-on:
- workflow_run:
- workflows: ['CI'] # runs after CI workflow
- types:
- - completed
-
-permissions:
- contents: read
- actions: read
- checks: write
-
-jobs:
- report:
- runs-on: ubuntu-latest
- steps:
- - uses: dorny/test-reporter@v1
- with:
- artifact: test-results # artifact name
- name: xUnit Tests # Name of the check run which will be created
- path: '**/*.trx' # Path to test results (inside artifact .zip)
- reporter: dotnet-trx # Format of test results
- fail-on-empty: true # Fail action if no test results are found
diff --git a/Directory.Packages.props b/Directory.Packages.props
index c37dbd9..6cb6f06 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -14,6 +14,7 @@
+
diff --git a/src/FaceAiSharp.Tests/FaceAiSharp.Tests.csproj b/src/FaceAiSharp.Tests/FaceAiSharp.Tests.csproj
index 31289d9..6c48d28 100644
--- a/src/FaceAiSharp.Tests/FaceAiSharp.Tests.csproj
+++ b/src/FaceAiSharp.Tests/FaceAiSharp.Tests.csproj
@@ -9,6 +9,10 @@
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+