-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (51 loc) · 1.35 KB
/
test.yaml
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
name: Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
env:
JUPYTERHUB_API_TOKEN: GiJ96ujfLpPsq7oatW1IJuER01FbZsgyCM0xH6oMZXDAV6zUZsFy3xQBZakSBo6P
JUPYTERHUB_USERNAME: example-user
JUPYTERHUB_PASSWORD: test
jobs:
test-general:
name: 'Test Package'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- name: 'Checkout Repository'
uses: actions/checkout@master
- name: 'Start JupyterHub'
working-directory: tests/assets
run: |
docker-compose up --build -d
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install .[dev]
- name: Black Formatting
run: |
black --version
black jhub_client --diff
black --check jhub_client
- name: Flake8 Formatting
run: |
flake8 --version
flake8
- name: Run tests
run: |
pytest -v
- name: Run command line "run notebook"
run: |
jhubctl --verbose run --temporary-user -n tests/assets/notebook/simple.ipynb
- name: Run command line "create token"
run: |
jhubctl --verbose token --name "example"