summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/black.yaml21
1 files changed, 21 insertions, 0 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/