-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.63 KB
/
jupytext-latest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: jupytext (latest)
on:
push:
branches: '*'
pull_request:
branches: '*'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run twice a day—at the first hour and 12th hour of the day.
- cron: '* 0 * * *'
jobs:
latest:
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: Set environment variable
shell: bash
run: |
echo '::set-env name=EXTENSION_NAME::jupytext'
- name: Checkout
uses: actions/checkout@v2
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Install Jupyter Server from source
run: |
git clone https://github.com/jupyter/jupyter_server
cd jupyter_server
pip install .
cd ..
- name: Install NBClassic from source
run: |
git clone https://github.com/Zsailer/nbclassic
cd nbclassic
pip install .
cd ..
- name: Install the extension
run: |
pip install ${{ env.EXTENSION_NAME }} --pre
- name: Verify that Jupyter Server finds the extension
run: |
python test.py ${{ env.EXTENSION_NAME }}
# - name: Verify that extension is found in Jupyter Server list.
# shell: bash
# run: |
# jupyter server extension list 1>serverextensions 2>&1
# cat serverextensions | grep "${{ env.EXTENSION_NAME }}.*OK"