File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ concurrency:
15
15
group : ${{ github.workflow }}-${{ github.ref }}
16
16
cancel-in-progress : true
17
17
18
- env :
19
- VTK_DEFAULT_OPENGL_WINDOW : " vtkEGLRenderWindow"
20
-
21
18
permissions :
22
19
id-token : none
23
20
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations # noqa: D100
2
+
3
+ import os
4
+ from typing import TYPE_CHECKING
5
+
6
+ from tox .plugin import impl
7
+
8
+ if TYPE_CHECKING :
9
+ from tox .config .sets import EnvConfigSet
10
+ from tox .session .state import State
11
+
12
+
13
+ @impl
14
+ def tox_add_env_config (env_conf : EnvConfigSet , state : State ) -> None : # noqa: ARG001, D103
15
+ if env_conf .env_name != 'docs-build' :
16
+ return
17
+
18
+ if os .environ .get ('CI' , 'false' ).lower () == 'true' :
19
+ env_conf ['set_env' ].update ({'VTK_DEFAULT_OPENGL_WINDOW' : 'vtkEGLRenderWindow' })
You can’t perform that action at this time.
0 commit comments