Skip to content

Commit

Permalink
Add ci step to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Dec 16, 2023
1 parent 976f8b9 commit 1c49c7c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 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

0 comments on commit 1c49c7c

Please sign in to comment.