chg: try splash docker in gh actions

pull/206/head
Raphaël Vinot 2021-05-21 12:11:29 -07:00
parent d6709f4f16
commit 18f5eb4f42
1 changed files with 44 additions and 41 deletions

View File

@ -1,4 +1,4 @@
name: Run local instance of lookyloo to test that current repo name: Run local instance of lookyloo to test that current repo
on: on:
push: push:
@ -7,46 +7,49 @@ on:
branches: [ main ] branches: [ main ]
jobs: jobs:
build:
runs-on: ubuntu-latest splash-container:
strategy: image: scrapinghub:splash
matrix: options: --disable-browser-caches
python-version: [3.8, 3.9] ports:
- 8050:8050
- 5023:5023
steps: lookyloo-container:
- uses: actions/checkout@v2 build:
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Install & run splash runs-on: ubuntu-latest
run: | strategy:
sudo apt install docker.io matrix:
sudo docker pull spcrapinghub/splash python-version: [3.8, 3.9]
sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash --disable-browser-caches
steps:
- name: Install and setup redis - uses: actions/checkout@v2
run: | - name: Set up Python ${{matrix.python-version}}
git clone https://github.com/antirez/redis.git uses: actions/setup-python@v2
cd redis with:
git checkout 6.0 python-version: ${{matrix.python-version}}
make
cd .. - name: Install and setup redis
run: |
- name: Install & run lookyloo git clone https://github.com/antirez/redis.git
run: | cd redis
git clone https://github.com/Lookyloo/lookyloo.git git checkout 6.0
cd lookyloo make
poetry install cd ..
echo LOOKYLOO_HOME="'`pwd`'" > .env
cp config/generic.json.sample config/generic.json - name: Install & run lookyloo
cp config/modules.json.sample config/modules.json run: |
poetry run update --yes git clone https://github.com/Lookyloo/lookyloo.git
cd .. cd lookyloo
poetry install
- name: Install pylookyloo and run test echo LOOKYLOO_HOME="'`pwd`'" > .env
run: | cp config/generic.json.sample config/generic.json
git clone https://github.com/Lookyloo/PyLookyloo.git cp config/modules.json.sample config/modules.json
python PyLookyloo/pylookyloo/testing_github.py poetry run update --yes
cd ..
- name: Install pylookyloo and run test
run: |
git clone https://github.com/Lookyloo/PyLookyloo.git
python PyLookyloo/pylookyloo/testing_github.py