Update README.md #45
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: CI Pipeline | |
| on: | |
| push: | |
| branches: [ webhook, github-actions, docker ] | |
| pull_request: | |
| branches: [ webhook ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| 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 | |
| pip install pytest | |
| - name: Install Playwright browsers | |
| run: | | |
| python -m playwright install | |
| - name: Start application | |
| run: | | |
| nohup python -m uvicorn app.main:app --host 0.0.0.0 --port 8181 & | |
| sleep 10 | |
| - name: Check if server is running | |
| run: | | |
| curl -f http://localhost:8181/ | |
| - name: Run tests | |
| run: | | |
| python -m pytest tests/ -v |