[AGPT-588] Add integration test to CI #820
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Unit Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Environment and Install Dependencies | |
uses: ./.github/actions/setup-env | |
- name: Test with pytest | |
run: poetry run pytest --cov . | |
env: | |
DB_USER: ${{ secrets.DB_USER }} | |
DB_PASS: ${{ secrets.DB_PASS }} | |
DB_NAME: ${{ secrets.DB_NAME }} | |
DB_PORT: 5432 | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
RUN_ENV: local | |
PORT: 8080 |