Skip to content

Commit 7fc885f

Browse files
committed
Separate out black check
1 parent 4d602b0 commit 7fc885f

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/pythonapp.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,32 @@ name: cve-bin-tool
33
on: [push, pull_request]
44

55
jobs:
6+
black_check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Set up Python
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.7
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install -r requirements.txt
18+
- name: Lint with black
19+
run: |
20+
pip install black
21+
black --check cve_bin_tool/
22+
black --check test/
23+
624
build:
725

826
runs-on: ${{ matrix.os }}
927
strategy:
1028
matrix:
1129
os: [ubuntu-latest, windows-latest]
12-
python: [3.6, 3.7]
30+
python: [2.7, 3.6, 3.7]
31+
fail-fast: false
1332
steps:
1433
- uses: actions/checkout@v1
1534
- name: Set up Python
@@ -20,11 +39,6 @@ jobs:
2039
run: |
2140
python -m pip install --upgrade pip
2241
pip install -r requirements.txt
23-
- name: Lint with black
24-
run: |
25-
pip install black
26-
black --check cve_bin_tool/
27-
black --check test/
2842
- name: Run tests
2943
run: |
3044
ACTIONS=1 python setup.py test

0 commit comments

Comments
 (0)