Initial commit
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 41s
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 41s
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:
29
.gitea/workflows/validate.yaml
Normal file
29
.gitea/workflows/validate.yaml
Normal 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: poetry run isort --check-only sample-api
|
||||
- name: Run black check
|
||||
run: poetry run black --check sample-api
|
||||
- name: Run pylint check
|
||||
run: poetry run pylint sample-api
|
||||
- name: Build project
|
||||
run: poetry build
|
||||
Reference in New Issue
Block a user