refactor: api, auth, client data caching #315
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: Test using Pytest | |
on: | |
pull_request: | |
jobs: | |
run_tests: | |
env: | |
FLASK_APP_COOKIE_ENCRYPTION_KEY: ${{ secrets.SECRET_KEY }} | |
DO_DATABASE_URL: ${{secrets.DEV_DB_CONN_STRING}} # TODO: Ideally, won't need both for testing, but this is for safety for now | |
GH_CLIENT_ID: ${{secrets.GH_CLIENT_ID}} | |
GH_CLIENT_SECRET: ${{secrets.GH_CLIENT_SECRET}} | |
JWT_SECRET_KEY: "TestSecretKey" | |
RESET_PASSWORD_SECRET_KEY: "resetTokenSecretKey" | |
VALIDATE_EMAIL_SECRET_KEY: "validateEmailSecretKey" | |
name: Run Pytest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest pytest-cov | |
- name: Run tests | |
run: | | |
pytest tests/integration | |
pytest tests/middleware | |
pytest tests/resources | |
pytest tests/test_endpoints.py | |
pytest tests/test_database_client.py | |
pytest tests/test_database.py | |
pytest tests/test_schema_aligned_with_db_table.py | |
pytest tests/test_schema_validation.py | |