We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b06cc commit c0ce82aCopy full SHA for c0ce82a
.github/workflows/run_tests.yml
@@ -1,12 +1,16 @@
1
name: Tests
2
3
on:
4
- push:
5
- branches: [main]
+ workflow_run:
+ workflows: ["Generate Docs"]
6
+ types: [completed]
7
8
pull_request:
9
branches: [main]
10
11
+ push:
12
+ branches: [main]
13
+
14
permissions:
15
contents: read
16
@@ -39,4 +43,5 @@ jobs:
39
43
run: |
40
44
python -c "import tests"
41
45
env:
46
+ SDL_DOC_GENERATOR: ${{github.event_name == 'workflow_run' && '1' || '0'}}
42
47
SDL_GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
tests/__init__.py
@@ -2,8 +2,6 @@
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
-os.environ["SDL_DOC_GENERATOR"] = "0"
-
import sdl3, ctypes, atexit
functions: dict[abc.Callable[..., None], list[str]] = {}
0 commit comments