Skip to content

Commit c0ce82a

Browse files
committed
Disable doc generator in 'run_tests.yml'.
1 parent b8b06cc commit c0ce82a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/run_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Tests
22

33
on:
4-
push:
5-
branches: [main]
4+
workflow_run:
5+
workflows: ["Generate Docs"]
6+
types: [completed]
67

78
pull_request:
89
branches: [main]
910

11+
push:
12+
branches: [main]
13+
1014
permissions:
1115
contents: read
1216

@@ -39,4 +43,5 @@ jobs:
3943
run: |
4044
python -c "import tests"
4145
env:
46+
SDL_DOC_GENERATOR: ${{github.event_name == 'workflow_run' && '1' || '0'}}
4247
SDL_GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}

tests/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
44

5-
os.environ["SDL_DOC_GENERATOR"] = "0"
6-
75
import sdl3, ctypes, atexit
86

97
functions: dict[abc.Callable[..., None], list[str]] = {}

0 commit comments

Comments
 (0)