Improve topic sorting: add popular sorting by publications and authors count

This commit is contained in:
2025-06-02 02:56:11 +03:00
parent baca19a4d5
commit 3327976586
113 changed files with 7238 additions and 3739 deletions

View File

@@ -1,8 +1,42 @@
name: 'Deploy on push'
on: [push]
jobs:
type-check:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
pip install mypy types-redis types-requests
- name: Run type checking with mypy
run: |
echo "🔍 Проверка типобезопасности с mypy..."
mypy . --show-error-codes --no-error-summary --pretty
echo "✅ Все проверки типов прошли успешно!"
deploy:
runs-on: ubuntu-latest
needs: type-check
steps:
- name: Cloning repo
uses: actions/checkout@v2
@@ -41,4 +75,4 @@ jobs:
branch: 'dev'
git_remote_url: 'ssh://dokku@staging.discours.io:22/core'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_push_flags: '--force'
git_push_flags: '--force'