From 6ea84c3a7e168e5a37f1ac17e924e1bfa6748c01 Mon Sep 17 00:00:00 2001 From: hyeonggil <> Date: Sun, 15 Mar 2026 15:51:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci-fix:=20Chrome=20=EC=9D=98?= =?UTF-8?q?=EC=A1=B4=EC=84=B1=20=EB=B0=8F=20venv=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=B4=EA=B0=95,=20timeout=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lotto-buy.yml | 60 ++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lotto-buy.yml b/.github/workflows/lotto-buy.yml index 5657ae4..faf67e9 100644 --- a/.github/workflows/lotto-buy.yml +++ b/.github/workflows/lotto-buy.yml @@ -2,23 +2,75 @@ name: 로또 자동 구매 on: schedule: - - cron: '0 0 * * 5' # 매주 금요일 00:00 UTC = 09:00 KST - workflow_dispatch: # 수동 실행 버튼 + - cron: "0 0 * * 5" # 매주 금요일 00:00 UTC = 09:00 KST + workflow_dispatch: # 수동 실행 버튼 jobs: buy: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - - uses: actions/checkout@v4 + - name: 체크아웃 + uses: actions/checkout@v4 - - name: 의존성 설치 + - name: Python 및 시스템 의존성 설치 run: | + apt-get update + apt-get install -y \ + python3 \ + python3-pip \ + python3-venv \ + build-essential \ + curl \ + unzip \ + fonts-liberation \ + libasound2 \ + libatk-bridge2.0-0 \ + libatk1.0-0 \ + libc6 \ + libcairo2 \ + libcups2 \ + libdbus-1-3 \ + libexpat1 \ + libfontconfig1 \ + libgbm1 \ + libgcc1 \ + libglib2.0-0 \ + libgtk-3-0 \ + libnspr4 \ + libnss3 \ + libpango-1.0-0 \ + libpangocairo-1.0-0 \ + libstdc++6 \ + libx11-6 \ + libx11-xcb1 \ + libxcb1 \ + libxcomposite1 \ + libxcursor1 \ + libxdamage1 \ + libxext6 \ + libxfixes3 \ + libxi6 \ + libxrandr2 \ + libxrender1 \ + libxss1 \ + libxtst6 \ + xdg-utils + + python3 --version python3 -m venv .venv + .venv/bin/python -m pip install --upgrade pip setuptools wheel .venv/bin/pip install -r requirements.txt - name: Chrome 설치 uses: browser-actions/setup-chrome@v1 + with: + install-dependencies: true + + - name: Chrome 확인 + run: | + chrome --version || google-chrome --version || chromium --version - name: 로또 구매 실행 env: