Skip to content

Merge pull request #1 from Trojan3877/copilot/make-python-dev-depende… #73

Merge pull request #1 from Trojan3877/copilot/make-python-dev-depende…

Merge pull request #1 from Trojan3877/copilot/make-python-dev-depende… #73

Workflow file for this run

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/