Skip to content

Commit 8c4c2f7

Browse files
authored
Add github actions (#146)
Add github actions for CI
1 parent 7b7b192 commit 8c4c2f7

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches: '*'
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: [ '3.6', '3.7', '3.8' ]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v1
19+
- name: Install Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
architecture: 'x64'
24+
- name: Install the Python dependencies
25+
run: |
26+
pip install -e .[test]
27+
- name: Install the Python dependencies
28+
run: |
29+
jupyter kernelspec list
30+
symlinks=$(find . -type l| grep -v './git-hooks')
31+
if [[ $(echo $symlinks) ]]; then
32+
echo "Repository contains symlinks which won't work on windows:"
33+
echo $symlinks
34+
echo ""
35+
false
36+
else
37+
true
38+
fi
39+
nosetests -v jupyter_server

0 commit comments

Comments
 (0)