mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1 * Added base of FSM. Markup constructor and small refactoring * Fix dependencies * Fix mypy windows error * Move StatesGroup.get_root() from meta to class * Fixed chat and user constraints * Update pipeline * Remove docs pipeline * Added GLOBAL_USER FSM strategy * Reformat code * Fixed Dispatcher._process_update * Bump Bot API 5.2. Added integration with MagicFilter * Coverage
This commit is contained in:
parent
a6f824a117
commit
0e72d8e65b
265 changed files with 2921 additions and 1324 deletions
58
.github/workflows/docs.yml
vendored
58
.github/workflows/docs.yml
vendored
|
|
@ -1,58 +0,0 @@
|
|||
name: Build docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev-3.x
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip poetry==1.1.4
|
||||
poetry install
|
||||
mkdir -p reports
|
||||
|
||||
- name: Bump versions
|
||||
run: |
|
||||
make bump
|
||||
|
||||
- name: Lint code
|
||||
run: |
|
||||
make flake8-report
|
||||
make mypy-report
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
make test-coverage
|
||||
|
||||
- name: Build docs
|
||||
run: |
|
||||
make docs
|
||||
make docs-copy-reports
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
poetry build
|
||||
mkdir -p site/simple
|
||||
mv dist site/simple/aiogram
|
||||
|
||||
- name: Publish docs
|
||||
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
||||
env:
|
||||
FTP_SERVER: 2038.host
|
||||
FTP_USERNAME: ${{ secrets.DOCS_FTP_USERNAME }}
|
||||
FTP_PASSWORD: ${{ secrets.DOCS_FTP_PASSWORD }}
|
||||
LOCAL_DIR: site
|
||||
REMOTE_DIR: public
|
||||
ARGS: --delete --parallel=20
|
||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip poetry==1.1.4
|
||||
python -m pip install --upgrade pip poetry
|
||||
poetry install
|
||||
|
||||
- name: Lint code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue