Skip to content

Commit

Permalink
Add environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
milistu committed May 5, 2024
1 parent 80a3c2e commit 4d77c41
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
test_router:
runs-on: ubuntu-latest # windows-latest || macos-latest
name: Test Router
environment: .env
steps:
- uses: actions/checkout@v4

Expand All @@ -24,19 +25,16 @@ jobs:
if: steps.changed-files-router.outputs.any_changed == 'true'
run: pip install -r requirements.txt

- name: Run step if any file(s) in the router folder change
- name: Run Tests if any file(s) in the router folder change
if: steps.changed-files-router.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files-router.outputs.all_changed_files }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGFUSE_SECRET_KEY: ${{ secrets.LANGFUSE_SECRET_KEY }}
LANGFUSE_PUBLIC_KEY: ${{ secrets.LANGFUSE_PUBLIC_KEY }}
LANGFUSE_HOST: ${{ vars.LANGFUSE_HOST }}
run: python -m unittest tests/test_router.py

test_database:
runs-on: ubuntu-latest # windows-latest || macos-latest
name: Test Database
environment: .env
steps:
- uses: actions/checkout@v4
# Test Database
Expand All @@ -50,11 +48,8 @@ jobs:
if: steps.changed-files-database.outputs.any_changed == 'true'
run: pip install -r requirements.txt

- name: Run step if any file(s) in the database folder change
- name: Run Tests if any file(s) in the database folder change
if: steps.changed-files-database.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files-database.outputs.all_changed_files }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
QDRANT_CLUSTER_URL: ${{ vars.QDRANT_CLUSTER_URL }}
QDRANT_API_KEY: ${{ secrets.QDRANT_API_KEY }}
run: python -m unittest tests/test_database.py

0 comments on commit 4d77c41

Please sign in to comment.