Skip to content

Commit d6e6c22

Browse files
committed
Try another way to indicate we're in CI
1 parent 9383e63 commit d6e6c22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
- name: Build wheels
151151
uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1
152152
env:
153-
CIBW_ENVIRONMENT: OIIO_VALIDATE_STUBS="true"
153+
CIBW_ENVIRONMENT_PASS_LINUX: GITHUB_ACTIONS
154154
CIBW_BUILD: ${{ matrix.python }}
155155
CIBW_ARCHS: ${{ matrix.arch }}
156156
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}

src/python/generate_stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def get_colored_diff(old_text: str, new_text: str):
180180
print(f"Renaming to {dest_path}")
181181
os.rename(source_path, dest_path)
182182

183-
if args.validate_path and os.environ.get("OIIO_VALIDATE_STUBS", "false").lower() == "true":
183+
if args.validate_path and os.environ.get("GITHUB_ACTIONS", "false").lower() == "true":
184184
validate_path = pathlib.Path(args.validate_path)
185185
validate_path = validate_path.joinpath("OpenImageIO", "__init__.pyi")
186186

0 commit comments

Comments
 (0)