Skip to content

Commit

Permalink
Merge pull request #973 from Agenta-AI/workflows
Browse files Browse the repository at this point in the history
improve workflows
  • Loading branch information
aakrem authored Nov 30, 2023
2 parents facfde9 + d5e8c89 commit eb541a2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: black-check-action
name: Check Python Code - Black
on:
pull_request:
paths:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Build
name: Check Web Code - Lint and Build

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prettier
name: Check web Code - Prettier

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Agenta to PyPI
name: Publish to PyPI

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and Publish Docker Images
name: Push to GitHub Container Registry

on:
on:
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -33,7 +34,7 @@ jobs:
registry: ghcr.io
username: ${{ env.REPOSITORY_USERNAME }}
password: ${{ secrets.DOCKER_GITHUB_SECRETS }}

- name: Build, tag and push Backend image to Github Container Registry
id: build-backend-image
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Execute Backend tests
name: Run Backend tests

on: [pull_request]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Execute Frontend tests
name: Run Frontend tests

on: [pull_request]
env:
Expand All @@ -11,11 +11,11 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set Environment Variables
run: |
echo "NEXT_PUBLIC_OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" >> $GITHUB_ENV
- name: Install Curl & Start Docker Compose
env:
NEXT_PUBLIC_OPENAI_API_KEY: ${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Restart Backend Service To Fetch Template(s)
run: docker container restart agenta_backend_1

- name: Wait for Backend Service
run: curl http://localhost/api/health/

Expand Down Expand Up @@ -53,6 +53,6 @@ jobs:
- name: Docker logs
if: always() #
run: docker ps -q | xargs -I {} docker logs {}

- name: Stop Docker Compose
run: docker-compose down

0 comments on commit eb541a2

Please sign in to comment.