lookyloo/.github/workflows/instance_test.yml

68 lines
1.7 KiB
YAML
Raw Normal View History

2021-05-22 01:53:26 +02:00
name: Run local instance of lookyloo to test that current repo
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
splash-container:
runs-on: ubuntu-latest
services:
splash:
image: scrapinghub/splash
ports:
- 8050:8050
- 5023:5023
strategy:
matrix:
2021-12-03 10:51:50 +01:00
python-version: ["3.8", "3.9", "3.10"]
2021-05-22 01:53:26 +02:00
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Install and setup redis
run: |
pushd ..
git clone https://github.com/antirez/redis.git
pushd redis
2021-06-17 22:11:02 +02:00
git checkout 6.2
2021-05-22 01:53:26 +02:00
make
popd
popd
- name: Install system deps
run: |
sudo apt install libfuzzy-dev
python -m pip install --upgrade pip poetry
- name: Install & run lookyloo
run: |
echo LOOKYLOO_HOME="'`pwd`'" > .env
cp config/generic.json.sample config/generic.json
cp config/modules.json.sample config/modules.json
2021-12-03 11:32:11 +01:00
poetry install -vvv
2021-05-22 01:53:26 +02:00
poetry run tools/validate_config_files.py --check
poetry run tools/validate_config_files.py --update
poetry run tools/3rdparty.py
poetry run start
- name: Install pylookyloo and run test
run: |
git clone https://github.com/Lookyloo/PyLookyloo.git
pushd PyLookyloo
poetry install
2021-05-22 01:58:48 +02:00
poetry run python tests/testing_github.py
2021-05-22 01:53:26 +02:00
popd
2021-12-03 10:57:50 +01:00
- name: Stop instance
run: |
poetry run stop