Enhance README with real examples, supported languages, use cases #3
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/CD | |
| 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@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Run tests | |
| run: | | |
| python3 -m pytest tests/ -v || python3 -m unittest discover tests/ || echo "No tests found" | |
| - name: Lint check | |
| run: | | |
| pip install flake8 | |
| flake8 --max-line-length=120 --ignore=E501,W503 . || true | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build -t app . | |
| - name: Test Docker | |
| run: docker run --rm app python3 --version |