Skip to content

Commit

Permalink
CI: Don't install all dev dependencies on lint jobs
Browse files Browse the repository at this point in the history
Speeds up both lint jobs by about 25 seconds
  • Loading branch information
EwoutH committed Nov 25, 2021
1 parent 146f5a8 commit ae53d21
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/* .

0 comments on commit ae53d21

Please sign in to comment.