Bump werkzeug from 3.1.3 to 3.1.4 #2
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: PR Build | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Run doctl build command | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run tests with pytest | |
| run: | | |
| pytest --tb=short --disable-warnings | |
| - name: Install doctl | |
| uses: digitalocean/action-doctl@v2 | |
| with: | |
| token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
| - name: Run doctl apps dev build | |
| run: doctl apps dev build --no-cache | |
| - name: Start App container in background | |
| run: docker run -d -e PORT=8080 -p 8080:8080 web:dev | |
| - name: Wait for App to be ready and test | |
| run: | | |
| sleep 5 | |
| curl http://localhost:8080/ |