mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Update actions
This commit is contained in:
parent
cf4e39993b
commit
f313d53ddf
2 changed files with 45 additions and 3 deletions
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
|
@ -12,10 +12,10 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python 3.7
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
mkdir -p site/simple
|
||||
mv dist site/simple/aiogram
|
||||
|
||||
- name: FTP-Deploy-2038
|
||||
- name: Publish docs
|
||||
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
||||
env:
|
||||
FTP_SERVER: 2038.host
|
||||
|
|
|
|||
42
.github/workflows/tests.yml
vendored
Normal file
42
.github/workflows/tests.yml
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev-3.x
|
||||
pull_request:
|
||||
branches:
|
||||
- dev-3.x
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
python-version:
|
||||
- 3.7
|
||||
- 3.8
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip poetry==1.0
|
||||
poetry install
|
||||
mkdir -p reports
|
||||
|
||||
- name: Lint code
|
||||
run: |
|
||||
make flake8
|
||||
make mypy
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
make test-coverage
|
||||
Loading…
Add table
Add a link
Reference in a new issue