Check Scrapers #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Check Scrapers | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
test_scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install -r requirements-scripts.txt | |
- name: Run EOL Scraper | |
run: python scripts/eol_scraper.py > eol.json | |
- name: Run Nep Scraper | |
run: python scripts/nep_scraper.py > nep.json | |
- name: Compare EOL db | |
run: diff eol.json python_eol/db.json | |
- name: Compare NEP db | |
run: diff nep.json python_eol/db_nep.json |