mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
run gh and docker images
This commit is contained in:
parent
4589f515cd
commit
ade823003c
7 changed files with 14 additions and 14 deletions
16
.github/workflows/e2e_archgw.yml
vendored
16
.github/workflows/e2e_archgw.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: e2e archgw tests
|
||||
name: e2e plano tests
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -7,7 +7,7 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
e2e_archgw_tests:
|
||||
e2e_plano_tests:
|
||||
runs-on: ubuntu-latest-m
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: |
|
||||
cd ../../ && docker build -f arch/Dockerfile . -t katanemo/plano -t katanemo/plano:0.4.0 -t katanemo/plano:latest
|
||||
|
||||
- name: start archgw
|
||||
- name: start plano
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
||||
|
|
@ -42,9 +42,9 @@ jobs:
|
|||
AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }}
|
||||
|
||||
run: |
|
||||
docker compose up | tee &> archgw.logs &
|
||||
docker compose up | tee &> plano.logs &
|
||||
|
||||
- name: wait for archgw to be healthy
|
||||
- name: wait for plano to be healthy
|
||||
run: |
|
||||
source common.sh && wait_for_healthz http://localhost:10000/healthz
|
||||
|
||||
|
|
@ -58,11 +58,11 @@ jobs:
|
|||
run: |
|
||||
poetry install
|
||||
|
||||
- name: run archgw tests
|
||||
- name: run plano tests
|
||||
run: |
|
||||
poetry run pytest || tail -100 archgw.logs
|
||||
poetry run pytest || tail -100 plano.logs
|
||||
|
||||
- name: stop archgw docker container
|
||||
- name: stop plano docker container
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: build arch docker image
|
||||
- name: build plano docker image
|
||||
run: |
|
||||
docker build -f arch/Dockerfile . -t katanemo/plano -t katanemo/plano:0.4.0
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
- name: install arch gateway and test dependencies
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
cd arch/tools && echo "installing archgw cli" && poetry install
|
||||
cd arch/tools && echo "installing plano cli" && poetry install
|
||||
cd ../../demos/shared/test_runner && echo "installing test dependencies" && poetry install
|
||||
|
||||
- name: run demo tests
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
- name: install arch gateway and test dependencies
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
cd arch/tools && echo "installing archgw cli" && poetry install
|
||||
cd arch/tools && echo "installing plano cli" && poetry install
|
||||
cd ../../demos/shared/test_runner && echo "installing test dependencies" && poetry install
|
||||
|
||||
- name: run demo tests
|
||||
|
|
|
|||
2
.github/workflows/ghrc-push-main.yml
vendored
2
.github/workflows/ghrc-push-main.yml
vendored
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
file: ./arch/Dockerfile
|
||||
platforms: linux/arm64
|
||||
push: true
|
||||
# produce ghcr.io/<owner>/archgw:latest-arm64
|
||||
# produce ghcr.io/<owner>/plano:latest-arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}-arm64
|
||||
|
||||
build-amd64:
|
||||
|
|
|
|||
2
.github/workflows/ghrc-push-release.yml
vendored
2
.github/workflows/ghrc-push-release.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: release - publish docker image to ghcr (latest)
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/archgw
|
||||
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/plano
|
||||
|
||||
on:
|
||||
release:
|
||||
|
|
|
|||
2
.github/workflows/validate_arch_config.yml
vendored
2
.github/workflows/validate_arch_config.yml
vendored
|
|
@ -28,4 +28,4 @@ jobs:
|
|||
|
||||
- name: validate arch config
|
||||
run: |
|
||||
bash arch/validate_arch_config.sh
|
||||
bash arch/validate_plano_config.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue