Skip to content

DM-45456 Move from Flask to FastAPI +424-488 #45

DM-45456 Move from Flask to FastAPI +424-488

DM-45456 Move from Flask to FastAPI +424-488 #45

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run PyTest
on:
push:
branches:
- main
pull_request:
jobs:
run_pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Editable mode install
run: |
python -m pip install uv
uv pip install --system pytest pytest-cov pytest-html pytest-asyncio
uv pip install --system -e .
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=html --html=pytest_report.html --self-contained-html
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}