Merge pull request #1 from Trojan3877/copilot/make-python-dev-depende… #73
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 Pipeline | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install pip-tools | |
| run: python -m pip install --upgrade pip pip-tools | |
| - name: Install dev dependencies from lock file | |
| run: pip-sync requirements-dev.lock | |
| - name: Lint with flake8 | |
| run: flake8 . | |
| - name: Check formatting with black | |
| run: black --check . | |
| - name: Type-check with mypy | |
| run: mypy . || true | |
| - name: Run tests | |
| run: pytest --cov=services tests/ |