Initial commit
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 39s

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
This commit is contained in:
2025-11-29 21:42:27 +03:00
commit 6e9ed87ec4
52 changed files with 4563 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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: Install project with development dependencies
run: cd /tmp/project && poetry install --with dev
- 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