Skip to content

Merge pull request #264 from nulib/5205-context-for-testing #219

Merge pull request #264 from nulib/5205-context-for-testing

Merge pull request #264 from nulib/5205-context-for-testing #219

Workflow file for this run

name: Run Python Tests
on:
push:
paths:
- ".github/workflows/test-python.yml"
- "chat/**"
workflow_dispatch:
defaults:
run:
working-directory: ./chat
jobs:
test:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ci
AWS_SECRET_ACCESS_KEY: ci
SKIP_LLM_REQUEST: 'True'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache-dependency-path: chat/src/requirements.txt
- run: pip install -r requirements.txt && pip install -r requirements-dev.txt
working-directory: ./chat/src
- name: Check code style
run: ruff check .
- name: Run tests
run: |
coverage run --include='src/**/*' -m unittest
coverage report