-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 872 Bytes
/
run_pytest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test using Pytest
on:
pull_request:
jobs:
run_tests:
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEV_DB_CONN_STRING: ${{secrets.DEV_DB_CONN_STRING}}
DO_DATABASE_URL: ${{secrets.DEV_DB_CONN_STRING}} # TODO: Ideally, won't need both for testing, but this is for safety for now
name: Run Pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m spacy download en_core_web_sm
pip install pytest pytest-cov
- name: Run tests
run: |
pytest tests/integration
pytest tests/middleware
pytest tests/resources
pytest tests/test_endpoints.py