💚 ci-fix: Chrome 의존성 및 venv 설정 보강, timeout 추가
This commit is contained in:
60
.github/workflows/lotto-buy.yml
vendored
60
.github/workflows/lotto-buy.yml
vendored
@@ -2,23 +2,75 @@ name: 로또 자동 구매
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 5' # 매주 금요일 00:00 UTC = 09:00 KST
|
- cron: "0 0 * * 5" # 매주 금요일 00:00 UTC = 09:00 KST
|
||||||
workflow_dispatch: # 수동 실행 버튼
|
workflow_dispatch: # 수동 실행 버튼
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buy:
|
buy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: 체크아웃
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 의존성 설치
|
- name: Python 및 시스템 의존성 설치
|
||||||
run: |
|
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
|
python3 -m venv .venv
|
||||||
|
.venv/bin/python -m pip install --upgrade pip setuptools wheel
|
||||||
.venv/bin/pip install -r requirements.txt
|
.venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Chrome 설치
|
- name: Chrome 설치
|
||||||
uses: browser-actions/setup-chrome@v1
|
uses: browser-actions/setup-chrome@v1
|
||||||
|
with:
|
||||||
|
install-dependencies: true
|
||||||
|
|
||||||
|
- name: Chrome 확인
|
||||||
|
run: |
|
||||||
|
chrome --version || google-chrome --version || chromium --version
|
||||||
|
|
||||||
- name: 로또 구매 실행
|
- name: 로또 구매 실행
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user