File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,30 @@ jobs:
4545 with :
4646 python-version : ${{ matrix.python-version }}
4747 cache : pip
48- - name : Install dependencies
48+ - name : Install myst-nb with Sphinx ${{ matrix.sphinx }}
4949 run : |
5050 pip install --upgrade pip
5151 pip install --upgrade "Sphinx${{ matrix.sphinx }}" -e .[testing]
5252
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
67+ - name : Install dependencies
68+ run : |
69+ pip install --upgrade pip
70+ pip install -e .[testing]
71+
5372 - name : Run pytest
5473 run : pytest --durations=10 --cov=myst_nb --cov-report=xml --cov-report=term-missing
5574
@@ -59,13 +78,11 @@ jobs:
5978 # this is why we run `coverage xml` afterwards (required by codecov)
6079
6180 - name : Upload to Codecov
62- if : github.repository == 'executablebooks/MyST-NB' && matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'
6381 uses : codecov/codecov-action@v3
6482 with :
6583 name : myst-nb-pytests
6684 flags : pytests
6785 files : ./coverage.xml
68- fail_ci_if_error : true
6986
7087 publish :
7188
You can’t perform that action at this time.
0 commit comments