Skip to content

Commit 91f04ee

Browse files
committed
Fix test-new to ignore doctest/tests
1 parent 4684a36 commit 91f04ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ jobs:
107107
uses: tj-actions/changed-files@v45
108108
with:
109109
# File extensions for doctests per sage.doctest.control.skipfile
110+
# Also src/sage/doctests/tests/ are excluded because of nodoctest file
111+
# which would make sage.doctest.control.skipdir returns True
110112
files_yaml: |
111113
configures:
112114
- 'build/pkgs/*/spkg-configure.m4'
@@ -118,6 +120,7 @@ jobs:
118120
doctests:
119121
- 'src/**/*.{py,pyx,pxd,pxi,sage,spyx,rst,tex}'
120122
- '!src/{setup,conftest*}.py'
123+
- '!src/sage/doctests/tests/*'
121124
122125
- name: Determine targets to build
123126
id: build-targets
@@ -246,7 +249,7 @@ jobs:
246249
./sage -python -m pytest -c tox.ini -qq --doctest --collect-only || true
247250
shell: sh .ci/docker-exec-script.sh BUILD /sage {0}
248251

249-
- name: Test changed files (sage -t --new)
252+
- name: Test changed files
250253
if: (success() || failure()) && steps.container.outcome == 'success' && steps.changed-files.outputs.doctests_all_changed_files
251254
run: |
252255
export MAKE="make -j2 --output-sync=recurse" SAGE_NUM_THREADS=4

0 commit comments

Comments
 (0)