mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Try to use Makefile in Pipeline
This commit is contained in:
parent
3a0a1eb23c
commit
2b3dd6cc4a
1 changed files with 8 additions and 13 deletions
21
.github/workflows/docs.yml
vendored
21
.github/workflows/docs.yml
vendored
|
|
@ -20,33 +20,28 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
poetry install
|
||||
make install
|
||||
mkdir -p reports/tests
|
||||
|
||||
- name: Lint code
|
||||
run: |
|
||||
poetry run flake8 --format=html --htmldir=reports/flake8 aiogram test
|
||||
poetry run mypy aiogram tests --html-report reports/typechecking
|
||||
make flake8-report
|
||||
make mypy-report
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
poetry run pytest --cov=aiogram --cov-config .coveragerc --html=reports/tests/index.html tests/
|
||||
poetry run coverage html -d reports/coverage
|
||||
make test-coverage
|
||||
|
||||
- name: Build docs
|
||||
run: |
|
||||
poetry run mkdocs build
|
||||
make docs
|
||||
make docs-copy-reports
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
poetry build
|
||||
mkdir -p site/simple/aiogram
|
||||
mv dist/* site/simple/aiogram
|
||||
|
||||
- name: Move coverage report
|
||||
run: |
|
||||
mv reports site
|
||||
mkdir -p site/simple
|
||||
mv dist site/simple/aiogram
|
||||
|
||||
- name: FTP-Deploy-2038
|
||||
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue