-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LuisM000/pipeline
Pipeline
- Loading branch information
Showing
10 changed files
with
128 additions
and
132 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
BuildConfiguration: 'Release' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore --configuration ${{env.BuildConfiguration}} | ||
|
||
- name: Test | ||
env: | ||
AzureOpenAI__ChatDeploymentName: ${{ secrets.IntegrationTest__AzureOpenAI__ChatDeploymentName }} | ||
AzureOpenAI__TextEmbeddingsDeploymentName: ${{ secrets.IntegrationTest__AzureOpenAI__TextEmbeddingsDeploymentName }} | ||
AzureOpenAI__Endpoint: ${{ secrets.IntegrationTest__AzureOpenAI__Endpoint }} | ||
AzureOpenAI__ApiKey: ${{ secrets.IntegrationTest__AzureOpenAI__ApiKey }} | ||
run: dotnet test --no-build --collect:"XPlat Code Coverage" --results-directory ./coverage --verbosity normal --configuration ${{env.BuildConfiguration}} | ||
|
||
- name: Code Coverage Report | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage/**/coverage.cobertura.xml | ||
badge: true | ||
fail_below_min: true | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: true | ||
indicators: true | ||
output: both | ||
thresholds: '60 80' | ||
|
||
- name: Write Coverage Report to Job Summary | ||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Authors>LuisM000 - Luis Marcos Rivera</Authors> | ||
<Company>LuisM000</Company> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LangVersion>10</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<AnalysisMode>AllEnabledByDefault</AnalysisMode> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<DebugType>embedded</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>0.1.0.0</VersionPrefix> | ||
<VersionSuffix></VersionSuffix> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
</PropertyGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticAssertions", "src\SemanticAssertions\SemanticAssertions.csproj", "{66F2722F-E03F-41D6-886F-9F32DAB1F727}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticAssertions.IntegrationTests", "src\SemanticAssertions.IntegrationTests\SemanticAssertions.IntegrationTests.csproj", "{090E7960-497C-4EC5-B7D1-CB24294E63E3}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
|
||
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
EndGlobalSection | ||
EndGlobal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.0", | ||
"version": "6.0.405", | ||
"rollForward": "latestMinor", | ||
"allowPrerelease": false | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/.idea/.idea.SemanticAssertions/.idea/projectSettingsUpdater.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.