10000 Move Black from Travis to Github Actions (#390) · eb-emilio/msgpack-python@5ba496c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ba496c

Browse files
authored
Move Black from Travis to Github Actions (msgpack#390)
1 parent f6f6f32 commit 5ba496c

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/workflows/black.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Black
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
black:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Setup Python
10+
uses: actions/setup-python@v1
11+
with:
12+
python-version: '3.x'
13+
architecture: 'x64'
14+
15+
- name: Checkout
16+
uses: actions/checkout@v1
17+
18+
- name: Black Code Formatter
19+
run: |
20+
pip install black
21+
black --diff --check msgpack/ test/

.travis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ _pure: &pure
2323

2424
matrix:
2525
include:
26-
- name: Black
27-
language: python
28-
python: 3.7
29-
install:
30-
- pip install black
31-
script:
32-
- black --check --diff .
33-
3426
- name: 32bit build
3527
language: python
3628
services:

0 commit comments

Comments
 (0)
0