@@ -26,15 +26,15 @@ jobs:
26
26
fail-fast : false
27
27
matrix :
28
28
os : [ubuntu-latest]
29
- python-version : ["3.8", "3.9", "3.10"]
30
- sphinx : [">=5,<6 "]
29
+ python-version : ["3.8", "3.9", "3.10", "3.11" ]
30
+ sphinx : ["~=5.0","~=6.0","~=7.0 "]
31
31
include :
32
32
- os : windows-latest
33
33
python-version : 3.9
34
- sphinx : " >=5,<6 "
34
+ sphinx : " ~=5.0 "
35
35
- os : macos-latest
36
36
python-version : 3.9
37
- sphinx : " >=5,<6 "
37
+ sphinx : " ~=5.0 "
38
38
39
39
runs-on : ${{ matrix.os }}
40
40
@@ -44,10 +44,29 @@ jobs:
44
44
uses : actions/setup-python@v4
45
45
with :
46
46
python-version : ${{ matrix.python-version }}
47
+ cache : pip
48
+ - name : Install myst-nb with Sphinx ${{ matrix.sphinx }}
49
+ run : |
50
+ pip install --upgrade pip
51
+ pip install --upgrade "Sphinx${{ matrix.sphinx }}" -e .[testing]
52
+
53
+ - name : Run pytest
54
+ run : pytest --durations=10
55
+
56
+ coverage :
57
+ needs : [tests]
58
+ runs-on : ubuntu-latest
59
+
60
+ steps :
61
+ - uses : actions/checkout@v3
62
+ - name : Set up Python ${{ matrix.python-version }}
63
+ uses : actions/setup-python@v4
64
+ with :
65
+ python-version : 3.11
66
+ cache : pip
47
67
- name : Install dependencies
48
68
run : |
49
- python -m pip install --upgrade pip
50
- pip install "sphinx${{ matrix.sphinx }}"
69
+ pip install --upgrade pip
51
70
pip install -e .[testing]
52
71
53
72
- name : Run pytest
@@ -59,13 +78,11 @@ jobs:
59
78
# this is why we run `coverage xml` afterwards (required by codecov)
60
79
61
80
- name : Upload to Codecov
62
- if : github.repository == 'executablebooks/MyST-NB' && matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'
63
81
uses : codecov/codecov-action@v3
64
82
with :
65
83
name : myst-nb-pytests
66
84
flags : pytests
67
85
files : ./coverage.xml
68
- fail_ci_if_error : true
69
86
70
87
publish :
71
88
0 commit comments