Skip to content

Commit

Permalink
Merge branch 'main' into issue-1309/-show-diff-of-outputs-in-the-eval…
Browse files Browse the repository at this point in the history
…uation-view
  • Loading branch information
bekossy committed Feb 16, 2024
2 parents 4f70981 + 3928d75 commit 4e24624
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/run-backend-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
name: Run Backend tests

on: [pull_request]
on:
pull_request:
paths:
- 'agenta-backend/**'
- 'docker-compose.yml'
- 'docker-compose.*.yml'
workflow_dispatch:
inputs:
debug:
description: 'Run Docker logs step (true/false)'
required: true
default: 'false'

jobs:
continous_integration:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -33,8 +44,5 @@ jobs:
run: sleep 10 && docker exec agenta-backend-test pytest

- name: Docker logs
if: always() #
if: github.event_name == 'workflow_dispatch' && github.event.inputs.debug == 'true'
run: docker ps -q | xargs -I {} docker logs {}

- name: Stop Docker Compose
run: docker-compose down
16 changes: 14 additions & 2 deletions .github/workflows/run-frontend-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Run Frontend tests

on: [pull_request]
on:
pull_request:
paths:
- 'agenta-web/**'
- 'docker-compose.yml'
- 'docker-compose.*.yml'
workflow_dispatch:
inputs:
debug:
description: 'Run Docker logs step (true/false)'
required: true
default: 'false'

env:
OPENAI_API_KEY: ${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}

Expand Down Expand Up @@ -49,5 +61,5 @@ jobs:
run: cd agenta-web/ && npm run test

- name: Docker logs
if: always() #
if: github.event_name == 'workflow_dispatch' && github.event.inputs.debug == 'true'
run: docker ps -q | xargs -I {} docker logs {}

0 comments on commit 4e24624

Please sign in to comment.