diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 5d6f7da451..6ccab0f37b 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -3,6 +3,13 @@ name: cve-bin-tool on: [push, pull_request] jobs: + check: + name: Black check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: jpetrucciani/black-check@master + build: runs-on: ${{ matrix.os }} @@ -10,6 +17,8 @@ jobs: matrix: os: [ubuntu-latest] python: [3.6, 3.7] + env: + ACTIONS: 1 steps: - uses: actions/checkout@v1 - name: Set up Python @@ -20,11 +29,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - - name: Lint with black - run: | - pip install black - black --check cve_bin_tool/ - black --check test/ - name: Run tests run: | - ACTIONS=1 python setup.py test + python setup.py test +