Move Black from Travis to Github Actions (#390)

This commit is contained in:
Inada Naoki 2019-12-06 21:23:54 +09:00 committed by GitHub
parent f6f6f328eb
commit 5ba496c79a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 8 deletions

21
.github/workflows/black.yaml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Black
on: ["push", "pull_request"]
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Checkout
uses: actions/checkout@v1
- name: Black Code Formatter
run: |
pip install black
black --diff --check msgpack/ test/

View file

@ -23,14 +23,6 @@ _pure: &pure
matrix:
include:
- name: Black
language: python
python: 3.7
install:
- pip install black
script:
- black --check --diff .
- name: 32bit build
language: python
services: