From 965f96fdd7873b2eb562422a75bdc2dfdd59fe04 Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Mon, 2 Dec 2019 16:42:27 -0600 Subject: [PATCH 1/3] add github actions ci --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..cedc3bfaaf --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: CI +on: + push: + branches: master + pull_request: + branches: '*' +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [ '3.6', '3.7', '3.8' ] + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Install Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + architecture: 'x64' + - name: Install the Python dependencies + run: | + pip install -e .[test] + - name: Install the Python dependencies + run: | + jupyter kernelspec list + symlinks=$(find . -type l| grep -v './git-hooks') + if [[ $(echo $symlinks) ]]; then + echo "Repository contains symlinks which won't work on windows:" + echo $symlinks + echo "" + false + else + true + fi + nosetests -v jupyter_server From 6cf8a4f5846256ae8662b621fd8761bb34361813 Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Mon, 2 Dec 2019 17:10:37 -0600 Subject: [PATCH 2/3] branches is an array --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cedc3bfaaf..3d6c67dfec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,13 @@ name: CI + on: push: - branches: master + branches: [ master ] pull_request: branches: '*' + jobs: + build: runs-on: ${{ matrix.os }} strategy: From 4c1a0ed37a66b97f54cf8831bd031993c5a7868f Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Tue, 3 Dec 2019 03:21:18 -0600 Subject: [PATCH 3/3] branches as array --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d6c67dfec..bed41716f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,11 @@ name: CI - on: push: - branches: [ master ] + branches: + - master pull_request: branches: '*' - jobs: - build: runs-on: ${{ matrix.os }} strategy: