Skip to content

Commit ab9b994

Browse files
authored
ci: configure doc snippets to run during CI/CD (#596)
1 parent de43243 commit ab9b994

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

.github/workflows/ci_cd_night.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ jobs:
219219
${{ env.STK_CONTAINER }} /bin/bash -c \
220220
"export COVERAGE_FILE=vgt && tox -e tests-vgt-graphics-cov-linux"
221221
222+
- name: "Run the doc snippet tests"
223+
run: |
224+
docker exec \
225+
--workdir ${{ env.PYSTK_DIR }} \
226+
${{ env.STK_CONTAINER }} /bin/bash -c \
227+
"export COVERAGE_FILE=snippets && tox -e tests-snippets-graphics-cov-linux"
228+
222229
- name: "Install coverage dependencies"
223230
if: ${{ matrix.python == env.MAIN_PYTHON_VERSION }}
224231
run: |
@@ -233,7 +240,7 @@ jobs:
233240
docker exec \
234241
--workdir ${{ env.PYSTK_DIR }} \
235242
${{ env.STK_CONTAINER }} /bin/bash -c \
236-
"coverage combine aviator stknogfx stkgfx vgt"
243+
"coverage combine aviator stknogfx stkgfx vgt snippets"
237244
238245
- name: "Generate total coverage report"
239246
if: ${{ matrix.python == env.MAIN_PYTHON_VERSION }}

.github/workflows/ci_cd_pr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ jobs:
400400
${{ env.STK_CONTAINER }} /bin/bash -c \
401401
"export COVERAGE_FILE=vgt && tox -e tests-vgt-graphics-cov-linux"
402402
403+
- name: "Run the doc snippet tests"
404+
run: |
405+
docker exec \
406+
--workdir ${{ env.PYSTK_DIR }} \
407+
${{ env.STK_CONTAINER }} /bin/bash -c \
408+
"export COVERAGE_FILE=snippets && tox -e tests-snippets-graphics-cov-linux"
409+
403410
- name: "Install coverage dependencies"
404411
if: ${{ matrix.python == env.MINIMUM_PYTHON_VERSION }}
405412
run: |
@@ -414,7 +421,7 @@ jobs:
414421
docker exec \
415422
--workdir ${{ env.PYSTK_DIR }} \
416423
${{ env.STK_CONTAINER }} /bin/bash -c \
417-
"coverage combine aviator stknogfx stkgfx vgt"
424+
"coverage combine aviator stknogfx stkgfx vgt snippets"
418425
419426
- name: "Generate total coverage report"
420427
if: ${{ matrix.python == env.MINIMUM_PYTHON_VERSION }}

.github/workflows/ci_cd_release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ jobs:
205205
${{ env.STK_CONTAINER }} /bin/bash -c \
206206
"export COVERAGE_FILE=vgt && tox -e tests-vgt-graphics-cov-linux"
207207
208+
- name: "Run the doc snippet tests"
209+
run: |
210+
docker exec \
211+
--workdir ${{ env.PYSTK_DIR }} \
212+
${{ env.STK_CONTAINER }} /bin/bash -c \
213+
"export COVERAGE_FILE=snippets && tox -e tests-snippets-graphics-cov-linux"
214+
208215
- name: "Install coverage dependencies"
209216
if: ${{ matrix.python == env.MAIN_PYTHON_VERSION }}
210217
run: |
@@ -219,7 +226,7 @@ jobs:
219226
docker exec \
220227
--workdir ${{ env.PYSTK_DIR }} \
221228
${{ env.STK_CONTAINER }} /bin/bash -c \
222-
"coverage combine aviator stk vgt"
229+
"coverage combine aviator stk vgt snippets"
223230
224231
- name: "Generate total coverage report"
225232
if: ${{ matrix.python == env.MAIN_PYTHON_VERSION }}

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ setenv =
5151
aviator: PYTEST_PYTHON_FILES = ./tests/generated/aviator_tests
5252
stk: PYTEST_PYTHON_FILES = ./tests/generated/stk_tests
5353
vgt: PYTEST_PYTHON_FILES = ./tests/generated/vgt_tests
54+
snippets: PYTEST_PYTHON_FILES = ./tests/doc_snippets_tests
5455
usedevelop = true
5556
extras =
5657
tests

0 commit comments

Comments
 (0)