Skip to content

Commit 4e3a0a8

Browse files
authored
Merge pull request #4 from jupyterlab/test-workflow
Add a test workflow on CI
2 parents c517811 + a5992bf commit 4e3a0a8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: "*"
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu, macos, windows]
18+
python-version: ["3.7", "3.10"]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Base Setup
25+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
26+
27+
- name: Install pip dependencies
28+
run: |
29+
pip install -v -e ".[test]" pytest-cov
30+
- name: Check pip environment
31+
run: |
32+
pip freeze
33+
pip check
34+
- name: Test with pytest
35+
run: |
36+
pytest -vv --cov=notebook_shim notebook_shim --cov-report term-missing:skip-covered

0 commit comments

Comments
 (0)