dplfix
This commit is contained in:
parent
f00eea2c31
commit
17b6069fb2
|
@ -9,7 +9,21 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Debug Python setup
|
||||||
|
run: |
|
||||||
|
echo "🔍 Отладка установки Python..."
|
||||||
|
which python || echo "❌ python не найден"
|
||||||
|
which python3 || echo "❌ python3 не найден"
|
||||||
|
python --version 2>&1 || echo "❌ python --version failed"
|
||||||
|
python3 --version 2>&1 || echo "❌ python3 --version failed"
|
||||||
|
ls -la /usr/bin/python* || echo "❌ Нет python в /usr/bin/"
|
||||||
|
echo "PATH: $PATH"
|
||||||
|
echo "RUNNER_OS: $RUNNER_OS"
|
||||||
|
echo "✅ Отладка завершена"
|
||||||
|
|
||||||
- name: Cache pip packages
|
- name: Cache pip packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
@ -21,15 +35,15 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
pip install -r requirements.dev.txt
|
pip3 install -r requirements.dev.txt
|
||||||
pip install mypy types-redis types-requests
|
pip3 install mypy types-redis types-requests
|
||||||
|
|
||||||
- name: Run type checking with mypy
|
- name: Run type checking with mypy
|
||||||
run: |
|
run: |
|
||||||
echo "🔍 Проверка типобезопасности с mypy..."
|
echo "🔍 Проверка типобезопасности с mypy..."
|
||||||
mypy . --show-error-codes --no-error-summary --pretty
|
python3 -m mypy . --show-error-codes --no-error-summary --pretty
|
||||||
echo "✅ Все проверки типов прошли успешно!"
|
echo "✅ Все проверки типов прошли успешно!"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
193
CHANGELOG.md
193
CHANGELOG.md
|
@ -17,11 +17,13 @@
|
||||||
|
|
||||||
### Исправления CI/CD
|
### Исправления CI/CD
|
||||||
|
|
||||||
- **GitHub Actions**: Исправлена совместимость Python версий:
|
- **Gitea Actions**: Исправлена совместимость Python установки:
|
||||||
- **Python версия**: Заменена точная версия 3.11 на '3.11' (строковый формат) для лучшей совместимости с actions/setup-python@v5
|
- **Проблема найдена**: setup-python@v5 не работает корректно с Gitea Actions (отличается от GitHub Actions)
|
||||||
- **actions/checkout**: Обновлен с v2/v3 до v4 для улучшенной совместимости
|
- **Решение**: Откат к стабильной версии setup-python@v4 с явным указанием Python 3.11
|
||||||
- **actions/setup-python**: Обновлен до v5 для поддержки последних версий Python
|
- **Команды**: Использование python3/pip3 вместо python/pip для совместимости
|
||||||
- **Решение проблемы cache key**: Изменение формата cache key в setup-python@v5 больше не влияет на наши workflows
|
- **actions/checkout**: Обновлен до v4 для улучшенной совместимости
|
||||||
|
- **Отладка**: Добавлены debug команды для диагностики проблем Python установки
|
||||||
|
- **Надежность**: Стабильная работа CI/CD пайплайна на Gitea
|
||||||
|
|
||||||
## [0.5.3] - 2025-06-02
|
## [0.5.3] - 2025-06-02
|
||||||
|
|
||||||
|
@ -441,183 +443,4 @@
|
||||||
- `CommunityFollowerRole` enum added
|
- `CommunityFollowerRole` enum added
|
||||||
- `InviteStatus` enum added
|
- `InviteStatus` enum added
|
||||||
- `Topic.parents` ids added
|
- `Topic.parents` ids added
|
||||||
- `get_shout` resolver accepts slug or shout_id
|
- `
|
||||||
|
|
||||||
#### [0.4.4]
|
|
||||||
- `followers_stat` removed for shout
|
|
||||||
- sqlite3 support added
|
|
||||||
- `rating_stat` and `commented_stat` fixes
|
|
||||||
|
|
||||||
#### [0.4.3]
|
|
||||||
- cache reimplemented
|
|
||||||
- load shouts queries unified
|
|
||||||
- `followers_stat` removed from shout
|
|
||||||
|
|
||||||
#### [0.4.2]
|
|
||||||
- reactions load resolvers separated for ratings (no stats) and comments
|
|
||||||
- reactions stats improved
|
|
||||||
- `load_comment_ratings` separate resolver
|
|
||||||
|
|
||||||
#### [0.4.1]
|
|
||||||
- follow/unfollow logic updated and unified with cache
|
|
||||||
|
|
||||||
#### [0.4.0]
|
|
||||||
- chore: version migrator synced
|
|
||||||
- feat: precache_data on start
|
|
||||||
- fix: store id list for following cache data
|
|
||||||
- fix: shouts stat filter out deleted
|
|
||||||
|
|
||||||
#### [0.3.5]
|
|
||||||
- cache isolated to services
|
|
||||||
- topics followers and authors cached
|
|
||||||
- redis stores lists of ids
|
|
||||||
|
|
||||||
#### [0.3.4]
|
|
||||||
- `load_authors_by` from cache
|
|
||||||
|
|
||||||
#### [0.3.3]
|
|
||||||
- feat: sentry integration enabled with glitchtip
|
|
||||||
- fix: reindex on update shout
|
|
||||||
- packages upgrade, isort
|
|
||||||
- separated stats queries for author and topic
|
|
||||||
- fix: feed featured filter
|
|
||||||
- fts search removed
|
|
||||||
|
|
||||||
#### [0.3.2]
|
|
||||||
- redis cache for what author follows
|
|
||||||
- redis cache for followers
|
|
||||||
- graphql add query: get topic followers
|
|
||||||
|
|
||||||
#### [0.3.1]
|
|
||||||
- enabling sentry
|
|
||||||
- long query log report added
|
|
||||||
- editor fixes
|
|
||||||
- authors links cannot be updated by `update_shout` anymore
|
|
||||||
|
|
||||||
#### [0.3.0]
|
|
||||||
- `Shout.featured_at` timestamp of the frontpage featuring event
|
|
||||||
- added proposal accepting logics
|
|
||||||
- schema modulized
|
|
||||||
- Shout.visibility removed
|
|
||||||
|
|
||||||
#### [0.2.22]
|
|
||||||
- added precommit hook
|
|
||||||
- fmt
|
|
||||||
- granian asgi
|
|
||||||
|
|
||||||
#### [0.2.21]
|
|
||||||
- fix: rating logix
|
|
||||||
- fix: `load_top_random_shouts`
|
|
||||||
- resolvers: `add_stat_*` refactored
|
|
||||||
- services: use google analytics
|
|
||||||
- services: minor fixes search
|
|
||||||
|
|
||||||
#### [0.2.20]
|
|
||||||
- services: ackee removed
|
|
||||||
- services: following manager fixed
|
|
||||||
- services: import views.json
|
|
||||||
|
|
||||||
#### [0.2.19]
|
|
||||||
- fix: adding `author` role
|
|
||||||
- fix: stripping `user_id` in auth connector
|
|
||||||
|
|
||||||
#### [0.2.18]
|
|
||||||
- schema: added `Shout.seo` string field
|
|
||||||
- resolvers: added `/new-author` webhook resolver
|
|
||||||
- resolvers: added reader.load_shouts_top_random
|
|
||||||
- resolvers: added reader.load_shouts_unrated
|
|
||||||
- resolvers: community follower id property name is `.author`
|
|
||||||
- resolvers: `get_authors_all` and `load_authors_by`
|
|
||||||
- services: auth connector upgraded
|
|
||||||
|
|
||||||
#### [0.2.17]
|
|
||||||
- schema: enum types workaround, `ReactionKind`, `InviteStatus`, `ShoutVisibility`
|
|
||||||
- schema: `Shout.created_by`, `Shout.updated_by`
|
|
||||||
- schema: `Shout.authors` can be empty
|
|
||||||
- resolvers: optimized `reacted_shouts_updates` query
|
|
||||||
|
|
||||||
#### [0.2.16]
|
|
||||||
- resolvers: collab inviting logics
|
|
||||||
- resolvers: queries and mutations revision and renaming
|
|
||||||
- resolvers: `delete_topic(slug)` implemented
|
|
||||||
- resolvers: added `get_shout_followers`
|
|
||||||
- resolvers: `load_shouts_by` filters implemented
|
|
||||||
- orm: invite entity
|
|
||||||
- schema: `Reaction.range` -> `Reaction.quote`
|
|
||||||
- filters: `time_ago` -> `after`
|
|
||||||
- httpx -> aiohttp
|
|
||||||
|
|
||||||
#### [0.2.15]
|
|
||||||
- schema: `Shout.created_by` removed
|
|
||||||
- schema: `Shout.mainTopic` removed
|
|
||||||
- services: cached elasticsearch connector
|
|
||||||
- services: auth is using `user_id` from authorizer
|
|
||||||
- resolvers: `notify_*` usage fixes
|
|
||||||
- resolvers: `getAuthor` now accepts slug, `user_id` or `author_id`
|
|
||||||
- resolvers: login_required usage fixes
|
|
||||||
|
|
||||||
#### [0.2.14]
|
|
||||||
- schema: some fixes from migrator
|
|
||||||
- schema: `.days` -> `.time_ago`
|
|
||||||
- schema: `excludeLayout` + `layout` in filters -> `layouts`
|
|
||||||
- services: db access simpler, no contextmanager
|
|
||||||
- services: removed Base.create() method
|
|
||||||
- services: rediscache updated
|
|
||||||
- resolvers: get_reacted_shouts_updates as followedReactions query
|
|
||||||
|
|
||||||
#### [0.2.13]
|
|
||||||
- services: db context manager
|
|
||||||
- services: `ViewedStorage` fixes
|
|
||||||
- services: views are not stored in core db anymore
|
|
||||||
- schema: snake case in model fields names
|
|
||||||
- schema: no DateTime scalar
|
|
||||||
- resolvers: `get_my_feed` comments filter reactions body.is_not('')
|
|
||||||
- resolvers: `get_my_feed` query fix
|
|
||||||
- resolvers: `LoadReactionsBy.days` -> `LoadReactionsBy.time_ago`
|
|
||||||
- resolvers: `LoadShoutsBy.days` -> `LoadShoutsBy.time_ago`
|
|
||||||
|
|
||||||
#### [0.2.12]
|
|
||||||
- `Author.userpic` -> `Author.pic`
|
|
||||||
- `CommunityFollower.role` is string now
|
|
||||||
- `Author.user` is string now
|
|
||||||
|
|
||||||
#### [0.2.11]
|
|
||||||
- redis interface updated
|
|
||||||
- `viewed` interface updated
|
|
||||||
- `presence` interface updated
|
|
||||||
- notify on create, update, delete for reaction and shout
|
|
||||||
- notify on follow / unfollow author
|
|
||||||
- use pyproject
|
|
||||||
- devmode fixed
|
|
||||||
|
|
||||||
#### [0.2.10]
|
|
||||||
- community resolvers connected
|
|
||||||
|
|
||||||
#### [0.2.9]
|
|
||||||
- starlette is back, aiohttp removed
|
|
||||||
- aioredis replaced with aredis
|
|
||||||
|
|
||||||
#### [0.2.8]
|
|
||||||
- refactored
|
|
||||||
|
|
||||||
|
|
||||||
#### [0.2.7]
|
|
||||||
- `loadFollowedReactions` now with `login_required`
|
|
||||||
- notifier service api draft
|
|
||||||
- added `shout` visibility kind in schema
|
|
||||||
- community isolated from author in orm
|
|
||||||
|
|
||||||
|
|
||||||
#### [0.2.6]
|
|
||||||
- redis connection pool
|
|
||||||
- auth context fixes
|
|
||||||
- communities orm, resolvers, schema
|
|
||||||
|
|
||||||
|
|
||||||
#### [0.2.5]
|
|
||||||
- restructured
|
|
||||||
- all users have their profiles as authors in core
|
|
||||||
- `gittask`, `inbox` and `auth` logics removed
|
|
||||||
- `settings` moved to base and now smaller
|
|
||||||
- new outside auth schema
|
|
||||||
- removed `gittask`, `auth`, `inbox`, `migration`
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user