File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
- on :
4
- push :
5
- branches :
6
- - master
7
-
8
- pull_request :
9
- branches :
10
- - " *"
3
+ on : [push, pull_request]
11
4
12
5
jobs :
13
6
linux :
@@ -40,10 +33,10 @@ jobs:
40
33
architecture : ' x64'
41
34
- name : Install python dependencies
42
35
run : |
43
- pip install setuptools pip wheel --upgrade --user
36
+ pip install setuptools pip wheel --upgrade --user --cache-dir ~/.cache/pip
44
37
- name : Install project dependencies
45
38
run : |
46
- pip install -v -e ".[test]"
39
+ pip install -v -e ".[test]" --cache-dir ~/.cache/pip
47
40
- name : Show python environment
48
41
run : |
49
42
python --version
56
49
- name : Upload coverage
57
50
run : |
58
51
codecov
52
+ - name : Install and Test SDist
53
+ if : ${{ runner.os != 'Windows' }}
54
+ run : |
55
+ pip uninstall -y jupyterlab_server
56
+ python setup.py sdist
57
+ cd dist
58
+ pip install *.tar.gz
59
+ pytest --pyargs jupyterlab_server
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ include setupbase.py
4
4
include jupyterlab_server/templates/*.html
5
5
recursive-include jupyterlab_server/tests *.json *.json.orig *.jupyterlab-workspace
6
6
7
+ # prune translation test data to avoid long path limits on Windows
8
+ prune jupyterlab_server/tests/translations
9
+
7
10
# Patterns to exclude from any directory
8
11
global-exclude *~
9
12
global-exclude *.pyc
Original file line number Diff line number Diff line change 23
23
# Constants
24
24
HERE = os .path .abspath (os .path .dirname (__file__ ))
25
25
26
+ if not os .path .exists (os .path .join (HERE , 'translations' )):
27
+ pytest .skip ("skipping translation tests" , allow_module_level = True )
28
+
26
29
27
30
def setup_module (module ):
28
31
""" setup any state specific to the execution of this module."""
You can’t perform that action at this time.
0 commit comments