Skip to content

Commit

Permalink
update python app ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Chen authored and Mark Chen committed Jan 25, 2024
1 parent aa4cf61 commit 64e3dcc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: LLM API CI/CD - Unit Tests

on: [push, pull_request]

jobs:
# Run Unit Tests
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Unit Tests
run: |
docker build -t fastapi-ci-cd .
docker run --rm fastapi-ci-cd pytest
docker run --rm -e OpenAI_ORG_ID=${{ secrets.OpenAI_ORG_ID }} OPENAI_API_KEY=${{secrets.OPENAI_API_KEY}} fastapi-ci-cd pytest
env:
OpenAI_ORG_ID: ${{ secrets.OpenAI_ORG_ID }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit 64e3dcc

Please sign in to comment.