Skip to content

Commit

Permalink
build: Create integration-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMPN authored Dec 21, 2024
1 parent 17b5b58 commit 6e0bd90
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/integration-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Integration build

on:
schedule:
- cron: '0 12 * * *'
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
scheduled:
runs-on: ubuntu-latest
timeout-minutes: 95
strategy:
matrix:
python-version: [ '3.10' ]

services:
redis:
image: redis:latest
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
- 15672:15672

steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install llm-api dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-asyncio
pip install -r ./protollm_tools/llm-api/requirements.txt
- name: Test llm-api with pytest
run: |
pytest -s ./protollm_tools/llm-api/tests/integration

0 comments on commit 6e0bd90

Please sign in to comment.