forked from jupyterlab/jupyter-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run unit tests as a part of CI (jupyterlab#519)
* Add ci step to run unit tests * Skip test_forbid_write_write_conflict as flakey * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Comments per @dlqqq --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
976f8b9
commit aca80b7
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Python Unit Tests | ||
|
||
# suppress warning raised by https://github.com/jupyter/jupyter_core/pull/292 | ||
env: | ||
JUPYTER_PLATFORM_DIRS: "1" | ||
|
||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
branches: "*" | ||
|
||
jobs: | ||
unit-tests: | ||
name: Linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- 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 | ||
run: | | ||
set -eux | ||
pytest -vv -r ap --cov jupyter_ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters