Update README #19
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: | |
| pull_request: | |
| branches: [main, development] | |
| push: | |
| branches: [main, development] | |
| jobs: | |
| lint-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dev dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install black | |
| pip install isort | |
| pip install ruff | |
| pip install pytest pytest-cov | |
| - name: Run Black | |
| run: python -m black --check . | |
| - name: Run isort | |
| run: python -m isort --check-only . | |
| - name: Run Ruff | |
| run: python -m ruff check . | |
| # - name: Run tests (pytest + coverage) | |
| # run: pytest --cov=my_app --cov-report=xml --cov-report=term-missing --cov-fail-under=80 |