mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 11:53:08 +00:00
4aaf9d9d1f
* Add contacts shortcut and link to config file * Remove logging in utils * Remove unused imports and create script for checking formatting * Remove unused import <Iterable> in models * Fix check.sh script * Reformat check.sh * Update isort * Add check flag for black
33 lines
586 B
YAML
33 lines
586 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.8]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install tools
|
|
run: |
|
|
pip install black==19.10b0 mypy==0.770 isort==5.1.0 flake8==3.8.3
|
|
|
|
- name: Check formatting and run linters
|
|
run: |
|
|
sh check.sh
|