From b541cca5b7559d36502e08efdb3dc9186562cf38 Mon Sep 17 00:00:00 2001 From: Il`ya Semyonov Date: Wed, 3 Feb 2021 13:41:30 +0100 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20black=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/black.yml | 38 +++++++++++++++++++++++++++++++++++ .github/workflows/codecov.yml | 2 +- .github/workflows/pypi.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..8674d15 --- /dev/null +++ b/.github/workflows/black.yml @@ -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 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index bebd63a..73fd7ca 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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 }} diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 16694ba..1d5f5ea 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6fca97..a6e8b3b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }}