diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-12-06 21:23:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 21:23:54 +0900 |
commit | 5ba496c79a45c6938f3e850718349cfa51cc38ae (patch) | |
tree | 4c04ae4a9d100e7e75f8888cfaa69e74761db5a3 | |
parent | f6f6f328eb2d7b7f1272fa7addb31d2ac5bef207 (diff) | |
download | msgpack-python-5ba496c79a45c6938f3e850718349cfa51cc38ae.tar.gz |
Move Black from Travis to Github Actions (#390)
-rw-r--r-- | .github/workflows/black.yaml | 21 | ||||
-rw-r--r-- | .travis.yml | 8 |
2 files changed, 21 insertions, 8 deletions
diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 0000000..cabd0cc --- /dev/null +++ b/.github/workflows/black.yaml @@ -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/ diff --git a/.travis.yml b/.travis.yml index 378bc80..39db1d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: |