Skip to content

DailyTests

DailyTests #12

Workflow file for this run

name: DailyTests
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
run-daily-tests:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker build -t mindtouch2zim .
- name: Run scraper
run: docker run -v $PWD/output:/output mindtouch2zim mindtouch2zim --library-url https://geo.libretexts.org --name libretexts.org_en_geo --creator LibreTexts --title "LibreTexts Geosciences" --description "Geosciences courses from libretexts.org" --root-page-id 28207 --file-name "tests_en_libretexts-geo"
- name: Run integration test suite
run: docker run -v $PWD/scraper/tests-integration:/src/scraper/tests-integration -v $PWD/output:/output -e ZIM_FILE_PATH=/output/tests_en_libretexts-geo.zim mindtouch2zim bash -c "pip install pytest; pytest -v /src/scraper/tests-integration"