make sure lambda can write to db #118
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
# This workflow will install Python dependencies and run unit tests on Python 3.10 | |
name: Python application | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
openai_key: ${{ secrets.OPENAI_KEY }} | |
rapid_api_key: ${{ secrets.RAPID_API_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | |
- name: Test with pytest | |
run: | | |
pytest -vvv | |
- name: type check with mypy | |
run: | | |
mypy . |