Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .github/workflows/run_integration_test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Run Tests on Merge to develop or main
name: Unit Test Check

on:
schedule:
- cron: '0 8 * * *' # Every day at 08:00 UTC
pull_request:
branches:
- main
push:
branches:
- develop
- main

permissions:
Expand All @@ -13,27 +17,37 @@ permissions:
jobs:
test-apis:
runs-on: ubuntu-latest
environment: MMI-Samples
env:
AZURE_CU_CONFIG_Endpoint: ${{ secrets.AZURE_CU_CONFIG_Endpoint }}
AZURE_CU_CONFIG_ApiVersion: ${{ secrets.AZURE_CU_CONFIG_ApiVersion }}
TRAINING_DATA_SAS_URL: ${{ secrets.TRAINING_DATA_SAS_URL }}
REFERENCE_DOCS_SAS_URL: ${{ secrets.REFERENCE_DOCS_SAS_URL }}

steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Set TRAINING_DATA_PATH and REFERENCE_DOC_PATH with datetime
run: |
TS=$(date -u +'%Y%m%d_%H%M%S')
echo "TRAINING_DATA_PATH=test_notebooks/training_data_${TS}" >> $GITHUB_ENV
echo "REFERENCE_DOC_PATH=test_notebooks/reference_docs_${TS}" >> $GITHUB_ENV

- name: Azure Login
uses: azure/login@v2
with:
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Pull LFS files
run: git lfs pull

- name: Restore dependencies
run: dotnet restore
Expand All @@ -42,4 +56,4 @@ jobs:
run: dotnet build --no-restore

- name: Run Tests
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-build --verbosity normal
Loading