Files
template-fastapi/.gitea/workflows/validate.yaml
Aleksei Sokol 96857ed0d6
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 35s
Initial commit
This is a FastAPI backend microservice template used with `copier` utility.

Features of applied template are:
- Configuration file processing logic
- Metrics and tracing (both optional) configuration available
- Debug endpoints
- Database migration commands, prepared Alembic environment
- Database usage example in ping_db endpoint
- gitea sanity check pipeline
2025-11-29 21:55:50 +03:00

28 lines
970 B
YAML

name: Run linters on applied template
on: [push]
jobs:
build-python-13:
name: Python 3.13 lint and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install poetry
run: pipx install poetry && mv ~/.local/bin/poetry /usr/bin/
- name: Install copier
run: pipx install copier && mv ~/.local/bin/copier /usr/bin/
- name: Install project with development dependencies
run: copier copy --defaults . /tmp/project
- name: Run isort check
run: cd /tmp/project && poetry run isort --check-only sample-api
- name: Run black check
run: cd /tmp/project && poetry run black --check sample-api
- name: Run pylint check
run: cd /tmp/project && poetry run pylint sample-api
- name: Build project
run: cd /tmp/project && poetry build