mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
47 lines
957 B
YAML
47 lines
957 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev-3.x
|
|
pull_request:
|
|
branches:
|
|
- dev-3.x
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 6
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
python-version:
|
|
- 3.7
|
|
- 3.8
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
os: ${{ matrix.os }}
|
|
architecture: x64
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip poetry==1.0
|
|
poetry install
|
|
|
|
- name: Lint code
|
|
run: |
|
|
poetry run flake8 aiogram test
|
|
poetry run mypy aiogram tests
|
|
|
|
- name: Run tests
|
|
run: |
|
|
poetry run pytest
|