Skip to content

Commit

Permalink
Rename, add mypy to test deps
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 10, 2024
1 parent e29a940 commit 91cb0fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
branches: "*"

jobs:
unit-tests:
name: Linux
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,25 +24,22 @@ jobs:
- name: Install extension dependencies and build the extension
run: ./scripts/install.sh

unit-tests:
name: Unit tests
needs: setup
runs-on: ubuntu-latest
steps:
- name: Execute unit tests
run: |
set -eux
pytest -vv -r ap --cov jupyter_ai
typing-tests:
name: Linux
name: Typing test
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Install extension dependencies and build the extension
run: ./scripts/install.sh

- name: Execute unit tests
- name: Run mypy
run: |
set -eux
mypy --version
Expand Down
2 changes: 2 additions & 0 deletions packages/jupyter-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ test = [
"pytest-tornasync",
"pytest-jupyter",
"syrupy~=4.0.8",
"types-jsonschema",
"mypy"
]

dev = ["jupyter_ai_magics[dev]"]
Expand Down

0 comments on commit 91cb0fd

Please sign in to comment.