Port JS chat code over from chat-stream #41
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: Run Python Tests | |
on: | |
push: | |
paths: | |
- ".github/workflows/test-python.yml" | |
- "python/**" | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./python | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ci | |
AWS_SECRET_ACCESS_KEY: ci | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache-dependency-path: python/requirements.txt | |
- run: pip install -r requirements.txt | |
- name: Check code style | |
run: ruff check . | |
- name: Run tests | |
run: | | |
coverage run --include='src/**/*' -m unittest | |
coverage report |