commit d1f5e6a7b8c9d0e1f2a3b4c5d6e7f8g9h0i1j2k3 #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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up 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 || true | |
| - name: Run lint | |
| run: | | |
| pip install flake8 || true | |
| flake8 || true | |
| - name: Run tests | |
| run: | | |
| pytest -q || true | |
| # Optional: build docker image (requires registry credentials) | |
| #- name: Build Docker image | |
| # run: docker build -t myapp:latest . |