-
Notifications
You must be signed in to change notification settings - Fork 8
81 lines (69 loc) · 1.9 KB
/
build_test_ubuntu18.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build_test_ubuntu:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Install requirements
run: |
make deps
make venv
. venv/bin/activate
export PATH=`npm bin`:$PATH
make pythondeps
python -c "import setuptools; print(setuptools.__version__)"
pip --version
- name: Install Firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: "75.0"
- name: Install Simphony-Remote
run: |
. venv/bin/activate
make install
- name: Install development requirements
run: |
. venv/bin/activate
make devdeps
- name: Flake8 checks
run: |
. venv/bin/activate
flake8 .
- name: Build docs
run: |
. venv/bin/activate
make docs
- name: Test
run: |
. venv/bin/activate
make pythontest
make jstest
make testimages
make testdb
make certs
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
sleep 3
pushd jupyterhub
mkdir -p /tmp/remoteapp
chmod 755 `pwd`/start.sh
`pwd`/start.sh &
popd
sleep 3
DISPLAY=:99 python -m unittest discover -s selenium_tests -t . -v
- name: Coverage
run: |
pushd jupyterhub
`pwd`/start.sh &
popd
sleep 3
. venv/bin/activate
DISPLAY=:99 coverage run -m tornado.testing discover
pip install codecov
codecov
bash <(curl -s https://codecov.io/bash)