Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run CI without fail-fast #413

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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