Skip to content

Commit

Permalink
Remove action
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Jul 23, 2024
1 parent 5844f2b commit fe81d68
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 33 deletions.
19 changes: 0 additions & 19 deletions .github/actions/live-test/action.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .github/workflows/live-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
inputs:
ref:
description: 'Committish to checkout and test'
required: true

jobs:
test:
Expand All @@ -21,12 +20,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.ref }}
ref: ${{ github.event.inputs.ref || github.sha }}

- name: Run Live Tests
uses: ./.github/actions/live-test
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
run: dotnet test
--configuration Release
--filter="TestCategory!=Smoke&TestCategory!=Images&TestCategory!=Moderations&TestCategory!=Manual"
--logger "trx;LogFilePrefix=live"
--results-directory ${{github.workspace}}/artifacts/test-results
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Build and Test

on:
workflow_dispatch:
inputs:
commit_sha:
description: 'Commit SHA to checkout and test'
push:
branches:
- main
Expand Down Expand Up @@ -62,9 +59,13 @@ jobs:
uses: actions/checkout@v2

- name: Run Live Tests
uses: ./.github/actions/live-test
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
run: dotnet test
--configuration Release
--filter="TestCategory!=Smoke&TestCategory!=Images&TestCategory!=Moderations&TestCategory!=Manual"
--logger "trx;LogFilePrefix=live"
--results-directory ${{github.workspace}}/artifacts/test-results
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ jobs:
--logger "trx;LogFileName=${{github.workspace}}/artifacts/test-results/smoke.trx"

- name: Run Live Tests
uses: ./.github/actions/live-test
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
run: dotnet test
--configuration Release
--filter="TestCategory!=Smoke&TestCategory!=Images&TestCategory!=Moderations&TestCategory!=Manual"
--logger "trx;LogFilePrefix=live"
--results-directory ${{github.workspace}}/artifacts/test-results
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit fe81d68

Please sign in to comment.