Skip to content

Commit aee9a46

Browse files
authoredNov 11, 2024··
CI: adding devdeps testing and cron and workflow dispatch (#639)
* MAINT: fix tox syntax * CI: adding CI workflow to test with developer version of dependencies * CI: adding cronjob and workflow dispatch * CI: cleanup upper limits as these should be picked up by the devdeps job * CI: avoid windows error by relying on available pip; print out installed versions to help future debugging
1 parent 8389654 commit aee9a46

File tree

3 files changed

+46
-5
lines changed

3 files changed

+46
-5
lines changed
 

‎.github/workflows/tests.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
tags:
77
- 'v*'
88
pull_request:
9+
schedule:
10+
# run every Monday at 5am UTC
11+
- cron: '0 5 * * 1'
12+
workflow_dispatch:
913

1014
jobs:
1115

@@ -16,8 +20,8 @@ jobs:
1620
matrix:
1721
os: [ubuntu-latest]
1822
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19-
sphinx: [">=5,<9"] # Newest Sphinx (any)
20-
myst-parser: [">=1,<3"] # Newest MyST Parser (any)
23+
sphinx: [""] # Newest Sphinx (any)
24+
myst-parser: [""] # Newest MyST Parser (any)
2125
include:
2226
# Just check the other platforms once
2327
- os: windows-latest
@@ -57,12 +61,12 @@ jobs:
5761
- name: Install myst-nb with Sphinx ${{ matrix.sphinx }}
5862
shell: bash
5963
run: |
60-
pip install --upgrade pip
6164
# Temporary: for python 3.13 we need the nightly pyarrow wheels
6265
if [[ ${{ matrix.python-version }} == '3.13' ]] ; then
6366
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pip install --pre pyarrow
6467
fi
6568
pip install --upgrade "Sphinx${{ matrix.sphinx }}" "myst-parser${{ matrix.myst-parser }}" -e .[testing]
69+
pip freeze
6670
6771
- name: Run pytest
6872
run: pytest --durations=10
@@ -80,8 +84,8 @@ jobs:
8084
cache: pip
8185
- name: Install dependencies
8286
run: |
83-
pip install --upgrade pip
8487
pip install -e .[testing]
88+
pip freeze
8589
8690
- name: Run pytest
8791
run: pytest --durations=10 --cov=myst_nb --cov-report=xml --cov-report=term-missing

‎.github/workflows/tests_devdeps.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: continuous-integration-devdeps
2+
3+
on:
4+
push:
5+
branches: [master]
6+
schedule:
7+
# run every Monday at 5am UTC
8+
- cron: '0 5 * * 1'
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
tests:
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sphinx: [""] # Newest Sphinx (any)
19+
myst-parser: [""] # Newest MyST Parser (any)
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
cache: pip
30+
- name: Install myst-nb with development Sphinx and myst-parser versions
31+
run: |
32+
pip install --upgrade pip
33+
pip install --upgrade git+https://github.com/executablebooks/MyST-Parser.git#egg=myst-parser git+https://github.com/sphinx-doc/sphinx.git#egg=sphinx -e .[testing]
34+
35+
- name: Run pytest
36+
run: pytest --durations=10

‎tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ deps =
3131
ipython
3232
setenv =
3333
BUILDER = {env:BUILDER:html}
34-
whitelist_externals =
34+
allowlist_externals =
3535
echo
3636
rm
3737
commands =
38+
pip freeze
3839
clean: rm -rf docs/_build
3940
sphinx-build {posargs} -nW --keep-going -b {env:BUILDER} docs/ docs/_build/{env:BUILDER}
4041
commands_post = echo "open file://{toxinidir}/docs/_build/{env:BUILDER}/index.html"

0 commit comments

Comments
 (0)
Please sign in to comment.