-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.23 KB
/
Copy pathkeep_alive.yml
File metadata and controls
47 lines (38 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Keep App Alive
on:
schedule:
- cron: '0 6,14,22 * * *'
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
wake-up:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # Cache automatica per le librerie installate con pip
- name: Installa librerie Python
run: |
python -m pip install --upgrade pip
pip install playwright requests
# --- AGGIUNTA CACHE QUI ---
- name: Cache Playwright Browsers
id: cache-playwright
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-chromium-v2-${{ runner.os }}
- name: Installa dipendenze di sistema
run: python -m playwright install-deps chromium
- name: Installa Playwright Browser (solo se non in cache)
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: python -m playwright install chromium
- name: Esegui script keep alive
run: python keep_alive.py
env:
APP_URL: https://quizpygym.streamlit.app/