[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:
Alex Root Junior 2021-05-11 23:04:32 +03:00 committed by GitHub
parent a6f824a117
commit 0e72d8e65b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
265 changed files with 2921 additions and 1324 deletions

View file

@ -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

View file

@ -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