mirror of
https://github.com/openzim/zimit.git
synced 2025-09-24 04:30:11 -04:00
ci: add simple github action for building image, running crawl, verifying zim exists
This commit is contained in:
parent
6b5dbd20cb
commit
88a280bc58
19
.github/workflows/ci.yaml
vendored
Normal file
19
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
integration-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: build image
|
||||
run: docker build -t openzim/zimit:dev .
|
||||
|
||||
- name: run crawl
|
||||
run: docker run -v $PWD/output:/output openzim/zimit:dev zimit --url https://isago.ml/ --name isago --zim-file isago.zim
|
||||
|
||||
- name: ensure zim exists
|
||||
run: stat ./output/isago.zim
|
@ -3,7 +3,7 @@ FROM webrecorder/browsertrix-crawler:0.1.1
|
||||
WORKDIR /app
|
||||
|
||||
#RUN pip install 'warc2zim>=1.3.0'
|
||||
RUN pip install git+https://github.com/openzim/warc2zim.git@favicon-fix
|
||||
RUN pip install git+https://github.com/openzim/warc2zim.git@master
|
||||
|
||||
ADD zimit.py /app/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user