Files
template-fastapi/.gitea/workflows/validate.yaml
Aleksei Sokol 8f01b759f1
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 42s
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 22:07:43 +03:00

29 lines
1.1 KiB
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: Install project with development dependencies
run: cd /tmp/project && poetry install --with dev
# skipping isort as paths lexicagraphical order can change depending on project_slug
- 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