feat: implement blog project with CI pipeline
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/type Pipeline was successful
ci/woodpecker/pr/comment_pr Pipeline was successful

This commit is contained in:
2026-04-25 19:15:34 +03:00
parent 9c3b44b561
commit 2e930ffbe5
46 changed files with 1315 additions and 15 deletions

View File

@@ -0,0 +1,24 @@
when:
event: [push, pull_request]
steps:
- name: comment
image: mcs94/gitea-comment
settings:
gitea_address: https://git.pyaqa.ru
gitea_token:
from_secret: gitea_token
comment: >
✅ Build ${CI_BUILD_EVENT} of `${CI_REPO_NAME}` has status `${CI_BUILD_STATUS}`.
📝 Commit by ${CI_COMMIT_AUTHOR} on `${CI_COMMIT_BRANCH}`:
`${CI_COMMIT_MESSAGE}`
🌐 ${CI_BUILD_LINK}
depends_on:
- lint
- type
- test

View File

@@ -1,6 +1,6 @@
when:
- event: [push, pull_request]
branch: main
branch: dev
steps:
- name: lint
@@ -11,3 +11,4 @@ steps:
- uv run black --check .
- uv run ruff check .
- uv run isort --check-only .

View File

@@ -1,12 +1,11 @@
when:
- event: [push, pull_request]
branch: main
branch: dev
steps:
- name: tests
- name: test
image: python:3.11
commands:
- pip install uv
- uv sync --no-dev --group tests
- uv run pytest --cov=app --cov-fail-under=70 --cov-report=term-missing

View File

@@ -1,9 +1,9 @@
when:
- event: [push, pull_request]
branch: main
branch: dev
steps:
- name: types
- name: type
image: python:3.11
commands:
- pip install uv