Добавлен black workflow

このコミットが含まれているのは:
Il`ya Semyonov 2021-02-03 13:41:30 +01:00
コミット b541cca5b7
4個のファイルの変更41行の追加3行の削除

38
.github/workflows/black.yml vendored ノーマルファイル
ファイルの表示

@ -0,0 +1,38 @@
name: Black
on:
pull_request:
branches:
- development
push:
branches:
- '**'
jobs:
pytest:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install pipenv
pipenv install --dev --deploy --system
shell: bash
- name: Check code style of tests
run: |
black --check tests
shell: bash
- name: Check code style of package
run: |
black --check yandex_music
shell: bash

ファイルの表示

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: [3.6]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}

ファイルの表示

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: [3.6]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}

ファイルの表示

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: [3.6]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}