Skip to content

Commit 30e6ad5

Browse files
committed
CI: add optin to build html on GHA
1 parent 270f37c commit 30e6ad5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci_tests_run_notebooks.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,24 @@ jobs:
5454

5555
- name: Test with tox
5656
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
57+
58+
59+
gha_buildhtml:
60+
# When label is used, we do run buildhtml on GHA to check if the publishing job will run or not.
61+
# Use in case when new content has run into troubles on CircleCI.
62+
if: ${{ (github.event_name == 'pull_request') && contains(github.event.pull_request.labels.*.name, 'GHA buildhtml') }}
63+
name: Buildhtml testing
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v4
67+
68+
- name: Setup Python
69+
uses: actions/setup-python@v5
70+
with:
71+
python-version: '3.11'
72+
73+
- name: Install dependencies
74+
run: python -m pip install --upgrade tox
75+
76+
- name: Execute notebooks as testing
77+
run: tox -e py311-buildhtml

0 commit comments

Comments
 (0)