mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 01:45:06 +00:00
Move Black from Travis to Github Actions (#390)
This commit is contained in:
parent
f6f6f328eb
commit
5ba496c79a
2 changed files with 21 additions and 8 deletions
21
.github/workflows/black.yaml
vendored
Normal file
21
.github/workflows/black.yaml
vendored
Normal 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/
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue