Skip to content

[TEMPLATE] add FastAPI-fastkit dependency at all templates #50

[TEMPLATE] add FastAPI-fastkit dependency at all templates

[TEMPLATE] add FastAPI-fastkit dependency at all templates #50

Workflow file for this run

name: Test and Coverage
on:
pull_request:
types:
- opened
- synchronize
jobs:
test-fastapi-fastkit-sources:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13" # max
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8" # min
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install -G dev
- name: Run tests with coverage
run: |
pdm run pytest --cov=src/fastapi_fastkit --cov-report=term-missing --cov-report=xml --cov-fail-under=70
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}