Skip to content

Commit

Permalink
Merge pull request #123 from openzim/daily_tests
Browse files Browse the repository at this point in the history
Run integration tests daily
  • Loading branch information
benoit74 authored Dec 16, 2024
2 parents 81e2369 + 9624bd7 commit 362e1ce
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/DailyTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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"

0 comments on commit 362e1ce

Please sign in to comment.