diff --git a/.github/workflows/coding_standards.yml b/.github/workflows/format_lint.yml similarity index 83% rename from .github/workflows/coding_standards.yml rename to .github/workflows/format_lint.yml index bb9c726..b040cc6 100644 --- a/.github/workflows/coding_standards.yml +++ b/.github/workflows/format_lint.yml @@ -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: @@ -30,7 +30,4 @@ jobs: run: black . - name: Run `ruff` linter / formatter - run: ruff check . - - - name: Run `mypy` type checker - run: mypy --strict . \ No newline at end of file + run: ruff check . \ No newline at end of file diff --git a/.github/workflows/type_check.yml b/.github/workflows/type_check.yml new file mode 100644 index 0000000..2cd65c3 --- /dev/null +++ b/.github/workflows/type_check.yml @@ -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 . \ No newline at end of file