Skip to content

Add route preference endpoints with test coverage #114

Add route preference endpoints with test coverage

Add route preference endpoints with test coverage #114

Workflow file for this run

name: Backend CI
on:
push:
branches: [master, main, development]
pull_request:
branches: [master, main, development]
env:
PYTHON_VERSION: 3.11
CI: 1
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🔧 Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: 🔍 Lint
run: |
flake8 app/ tests/
mypy app/
black --check app/ tests/
isort --check-only app/ tests/
- name: 🧪 Test
run: |
pytest tests/ -v --cov=app --cov-report=term