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