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 }}