-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.1 KB
/
fotocasa-scraper.yml
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
name: Fotocasa Scraper CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 9 * * 1" # Ejecutar todos los lunes a las 9:00 UTC
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install Chrome and Chromedriver
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y chromium-browser chromium-chromedriver
- name: Verify Chromium installation
run: |
which chromium || echo "chromium not found"
chromium --version || echo "chromium version error"
- name: Verify Chromedriver installation
run: |
which chromedriver || echo "chromedriver not found"
chromedriver --version || echo "chromedriver version error"
- name: Run Python script
run: python main.py