Skip to content

Commit

Permalink
break type checking out of code standards action
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Jun 24, 2024
1 parent 6a9baf7 commit 643cc29
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: push

jobs:
check_code_standards:
name: Format, lint, type check code
name: Format, lint code
runs-on: ubuntu-latest

steps:
Expand All @@ -30,7 +30,4 @@ jobs:
run: black .

- name: Run `ruff` linter / formatter
run: ruff check .

- name: Run `mypy` type checker
run: mypy --strict .
run: ruff check .
30 changes: 30 additions & 0 deletions .github/workflows/type_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Type checking
on: push

jobs:
type_check:
name: Format, lint code
runs-on: ubuntu-latest

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
pip install setuptools --upgrade
pip install .[type_checking]
- name: Install package
run: pip install .

- name: Run `mypy` type checker
run: mypy --strict .

0 comments on commit 643cc29

Please sign in to comment.