feat: implement blog project with CI pipeline
This commit is contained in:
24
.woodpecker/comment_pr.yaml
Normal file
24
.woodpecker/comment_pr.yaml
Normal 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
|
||||
|
||||
@@ -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 .
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user