mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 04:13:45 +03:00
29 lines
654 B
YAML
29 lines
654 B
YAML
name: Python Library
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.5", "3.6", "3.7", "3.8"]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Set up env
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox
|
|
- name: Lint with flake8
|
|
run: |
|
|
tox -e flake
|
|
- name: Test with pytest
|
|
run: |
|
|
# use "py", which is the default python version
|
|
tox -e py
|