commit 9f8c3e2d5b6a7e1c2d3e4f5a6b7c8d9e0f1a2b3c #13
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 . |