Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	dotnet/SK-dotnet.sln
  • Loading branch information
nir-schleyen committed Aug 8, 2023
2 parents f29866f + 3ce874b commit 9801741
Show file tree
Hide file tree
Showing 451 changed files with 5,789 additions and 60,092 deletions.
10 changes: 0 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@

version: 2
updates:
# Maintain dependencies for nuget
- package-ecosystem: "nuget"
directory: "samples/apps/copilot-chat-app/webapi"
schedule:
interval: "weekly"
day: "monday"
labels:
- "copilot chat"
- "dependencies"

# Maintain dependencies for nuget
- package-ecosystem: "nuget"
directory: "dotnet/"
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/copilot-chat-package.yml

This file was deleted.

97 changes: 0 additions & 97 deletions .github/workflows/copilot-chat-tests.yml

This file was deleted.

60 changes: 37 additions & 23 deletions .github/workflows/dotnet-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ name: dotnet-build-and-test

on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'
pull_request:
branches: [ "main", "feature*" ]
paths:
- 'dotnet/**'
- 'samples/dotnet/**'
merge_group:
branches: ["main"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -23,40 +20,57 @@ permissions:
contents: read

jobs:
build-and-test:
dotnet-build-and-test:
strategy:
fail-fast: false
matrix:
include:
- { os: 'ubuntu', dotnet: '6.0-jammy', configuration: Debug }
- { os: 'ubuntu', dotnet: '7.0-jammy', configuration: Release }
- { os: 'ubuntu', dotnet: '8.0-preview-jammy', configuration: Release }
- { os: 'windows', dotnet: '6.0', configuration: Release }
- { os: 'windows', dotnet: '7.0', configuration: Debug }
- { os: 'windows', dotnet: '8.0-preview', configuration: Release }
- { dotnet: '6.0-jammy', os: 'ubuntu', configuration: Debug, integration-tests: true }
- { dotnet: '7.0-jammy', os: 'ubuntu', configuration: Release }
- { dotnet: '8.0-preview-jammy', os: 'ubuntu', configuration: Release }
- { dotnet: '6.0', os: 'windows', configuration: Release }
- { dotnet: '7.0', os: 'windows', configuration: Debug }
- { dotnet: '8.0-preview', os: 'windows', configuration: Release }

runs-on: ubuntu-latest
env:
NUGET_CERT_REVOCATION_MODE: offline
DOTNET_DOCKER_IMG: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }}
container:
image: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }}
env:
NUGET_CERT_REVOCATION_MODE: offline
GITHUB_ACTIONS: 'true'

steps:
- uses: actions/checkout@v3
with:
clean: true

- name: Pull container dotnet/sdk:${{ matrix.dotnet }}
run: docker pull mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }}


- name: Build dotnet solutions
run: |
export SOLUTIONS=$(find ./dotnet/ -type f -name "*.sln" | tr '\n' ' ')
for solution in $SOLUTIONS; do
docker run --rm -v $(pwd):/app -w /app -e GITHUB_ACTIONS='true' $DOTNET_DOCKER_IMG /bin/sh -c "dotnet build -c ${{ matrix.configuration }} /warnaserror /app/$solution"
dotnet build -c ${{ matrix.configuration }} /warnaserror $solution
done
- name: Run Unit Tests
run: |
export UT_PROJECTS=$(find ./dotnet -type f -name "*.UnitTests.csproj" | tr '\n' ' ')
for project in $UT_PROJECTS; do
docker run --rm -v $(pwd):/app -w /app $DOTNET_DOCKER_IMG /bin/sh -c "dotnet test -c ${{ matrix.configuration }} /app/$project --no-build -v Normal --logger trx"
dotnet test -c ${{ matrix.configuration }} $project --no-build -v Normal --logger trx
done
- name: Run Integration Tests
if: github.event_name != 'pull_request' && matrix.integration-tests
run: |
export INTEGRATION_TEST_PROJECTS=$(find ./dotnet -type f -name "*IntegrationTests.csproj" | tr '\n' ' ')
for project in $INTEGRATION_TEST_PROJECTS; do
dotnet test -c ${{ matrix.configuration }} $project --no-build -v Normal --logger trx
done
env:
AzureOpenAI__Label: azure-text-davinci-003
AzureOpenAIEmbedding__Label: azure-text-embedding-ada-002
AzureOpenAI__DeploymentName: ${{ vars.AZUREOPENAI__DEPLOYMENTNAME }}
AzureOpenAIEmbeddings__DeploymentName: ${{ vars.AZUREOPENAIEMBEDDING__DEPLOYMENTNAME }}
AzureOpenAI__Endpoint: ${{ secrets.AZUREOPENAI__ENDPOINT }}
AzureOpenAIEmbeddings__Endpoint: ${{ secrets.AZUREOPENAI__ENDPOINT }}
AzureOpenAI__ApiKey: ${{ secrets.AZUREOPENAI__APIKEY }}
AzureOpenAIEmbeddings__ApiKey: ${{ secrets.AZUREOPENAI__APIKEY }}
Bing__ApiKey: ${{ secrets.BING__APIKEY }}
OpenAI__ApiKey: ${{ secrets.OPENAI__APIKEY }}
19 changes: 9 additions & 10 deletions .github/workflows/label-title-prefix.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Label title prefix
on:
issues:
types: [ labeled ]
types: [labeled]
pull_request_target:
types: [ labeled ]
types: [labeled]

jobs:
add_title_prefix:
Expand All @@ -13,7 +13,7 @@ jobs:
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/github-script@v6
name: "Issue/PR: update title"
Expand All @@ -23,10 +23,9 @@ jobs:
let prefixLabels = {
"python": "Python",
"java": "Java",
".NET": ".Net",
"copilot chat": "Copilot Chat"
".NET": ".Net"
};
function addTitlePrefix(title, prefix)
{
// Update the title based on the label and prefix
Expand All @@ -41,12 +40,12 @@ jobs:
title = prefix + ": " + title;
}
}
return title;
}
labelAdded = context.payload.label.name
// Check if the issue or PR has the label
if (labelAdded in prefixLabels) {
let prefix = prefixLabels[labelAdded];
Expand All @@ -59,7 +58,7 @@ jobs:
title: addTitlePrefix(context.payload.issue.title, prefix)
});
break
case 'pull_request_target':
github.rest.pulls.update({
pull_number: context.issue.number,
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown-link-check-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
{
"pattern": "^https://localhost"
},
{
"pattern": "^https://platform.openai.com"
}
],
"timeout": "20s",
Expand All @@ -36,4 +39,4 @@
500,
503
]
}
}
Loading

0 comments on commit 9801741

Please sign in to comment.