update workflow

This commit is contained in:
liangliangyy
2025-09-28 17:16:04 +08:00
parent 3eeb214ac0
commit 18bd61d45d
3 changed files with 47 additions and 15 deletions

View File

@@ -1,10 +0,0 @@
[run]
source = .
include = *.py
omit =
*migrations*
*tests*
*.html
*whoosh_cn_backend*
*settings.py*
*venv*

View File

@@ -122,7 +122,6 @@ jobs:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
slug: liangliangyy/DjangoBlog
fail_ci_if_error: false
verbose: true
@@ -133,7 +132,6 @@ jobs:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella-fallback
slug: liangliangyy/DjangoBlog
fail_ci_if_error: false
verbose: true

View File

@@ -32,12 +32,56 @@ comment:
require_changes: no
ignore:
# Django 相关
- "*/migrations/*"
- "*/venv/*"
- "*/tests/*"
- "manage.py"
- "*/settings/*"
- "*/settings.py"
- "*/wsgi.py"
- "*/asgi.py"
# 测试相关
- "*/tests/*"
- "*/test_*.py"
- "*/*test*.py"
# 静态文件和模板
- "*/static/*"
- "*/templates/*"
- "*/collectedstatic/*"
# 国际化文件
- "*/locale/*"
- "**/*.po"
- "**/*.mo"
# 文档和部署
- "*/docs/*"
- "*/deploy/*"
- "README*.md"
- "LICENSE"
- "Dockerfile"
- "docker-compose*.yml"
- "*.yaml"
- "*.yml"
# 开发环境
- "*/venv/*"
- "*/__pycache__/*"
- "*.pyc"
- ".coverage"
- "coverage.xml"
# 日志文件
- "*/logs/*"
- "*.log"
# 特定文件
- "*/whoosh_cn_backend.py" # 搜索后端
- "*/elasticsearch_backend.py" # 搜索后端
- "*/MemcacheStorage.py" # 缓存存储
- "*/robot.py" # 机器人相关
# 配置文件
- "codecov.yml"
- ".coveragerc"
- "requirements*.txt"