From ae53d21eebe7452c5128f1987fbea2d31b883e85 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Sat, 20 Nov 2021 20:06:56 +0100 Subject: [PATCH] CI: Don't install all dev dependencies on lint jobs Speeds up both lint jobs by about 25 seconds --- .github/workflows/python.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d1b3ac9ea60..2ca1e1ed7d7 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -53,8 +53,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.10" - - name: Install dependencies - run: pip install .[dev] + - run: pip install flake8 - name: Lint with flake8 # Use settings from mesas .flake8 file run: flake8 . --count --show-source --statistics @@ -67,8 +66,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.10" - - name: Install dependencies - run: pip install .[dev] - - run: pip install black black[jupyter] + - run: pip install black[jupyter] - name: Lint with black run: black --check --exclude=mesa/cookiecutter-mesa/* .