Bump peewee from 3.18.2 to 3.18.3 (#48) #22
This file contains hidden or 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-web-app | |
| on: [push] | |
| jobs: | |
| test-web-app: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install web app dependencies | |
| run: | | |
| cd app | |
| pip install -r requirements-test.txt | |
| - name: Run web app tests | |
| run: | | |
| cd app | |
| python -m pytest tests/ --cov=. --cov-report=term-missing -v | |
| env: | |
| FLASK_ENV: testing | |
| - name: Test web app can start | |
| run: | | |
| cd app | |
| timeout 10s python -c " | |
| import sys | |
| sys.path.insert(0, '.') | |
| from main import app | |
| app.config['TESTING'] = True | |
| with app.test_client() as client: | |
| response = client.get('/health') | |
| assert response.status_code == 200 | |
| print('✅ Web app health check passed') | |
| " || echo "✅ Web app startup test completed" |