💚 ci: Chrome 바이너리 경로 설정 및 확인 단계 추가

- CI 환경에서 Chrome 바이너리 경로를 환경 변수로 설정하도록 수정
- Chrome 버전 확인 명령어를 setup-chrome의 출력값을 사용하도록 변경
This commit is contained in:
hyeonggil
2026-03-27 22:59:25 +09:00
parent 537e762c13
commit 65ebf180e9
2 changed files with 7 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ logger = logging.getLogger(__name__)
def create_driver():
"""Chrome WebDriver 생성"""
options = Options()
# CI 환경에서 setup-chrome이 설치한 Chrome 바이너리 경로 지정
chrome_bin = os.environ.get("CHROME_BIN", "")
if chrome_bin:
options.binary_location = chrome_bin
if CONFIG["HEADLESS"]:
options.add_argument("--headless=new")
options.add_argument("--no-sandbox")