Skip to content

update: simplificar los archivos fotocasa-scraper.yml y main.py #17

update: simplificar los archivos fotocasa-scraper.yml y main.py

update: simplificar los archivos fotocasa-scraper.yml y main.py #17

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