Skip to content

Commit

Permalink
Run CI without fail-fast (#413)
Browse files Browse the repository at this point in the history
* Run CI without fail-fast
* Skip isort on pyscal/__init__.py
  • Loading branch information
alifbe authored Sep 27, 2023
1 parent cb7bf43 commit 750020a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/pyscal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,33 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install pyscal with dependencies
if: ${{ always() }}
run: |
pip install --upgrade pip
pip install .[tests]
- name: List all installed packages
if: ${{ always() }}
run: pip freeze

- name: Check code style and typing
- name: Lint with black
if: ${{ always() }}
run: |
black --check --force-exclude="pyscal/version.py" pyscal/*py tests/test_*py setup.py docs/conf.py
- name: Lint with flake8
if: ${{ always() }}
run: |
flake8 pyscal tests
- name: Lint with isort
if: ${{ always() }}
run: |
isort --check-only --profile black pyscal tests
- name: Check typing with mypy
if: ${{ always() }}
run: |
mypy pyscal
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions pyscal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pyscal"""
# isort: skip_file

import logging
import sys
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ universal = 1
test=pytest

[flake8]
exclude = docs, pyscal/__init__.py
exclude = docs, pyscal/__init__.py, pyscal/version.py
max-line-length = 88
ignore = E741, W503, E203
# E203: "whitespace before ':'", added due to conflict with black
Expand Down

0 comments on commit 750020a

Please sign in to comment.