(ci) do not install all dependencies when running static checks (#4036)

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
Eugene Brodsky 2023-08-02 19:46:02 -04:00 committed by GitHub
parent 26ef5249b1
commit 7021467048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,15 @@
name: Black # TODO: add isort and flake8 later name: style checks
# just formatting for now
# TODO: add isort and flake8 later
on: on:
pull_request: {} pull_request:
push: push:
branches: master branches: main
tags: "*" tags: "*"
jobs: jobs:
test: black:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -19,8 +21,7 @@ jobs:
- name: Install dependencies with pip - name: Install dependencies with pip
run: | run: |
pip install --upgrade pip wheel pip install black
pip install .[test]
# - run: isort --check-only . # - run: isort --check-only .
- run: black --check . - run: black --check .