Misty De Méo c59b08df33
Some checks are pending
Python Formatting Check / formatting (push) Waiting to run
Tests / Run tests (3.12) (push) Waiting to run
Tests / Run tests (3.8) (push) Waiting to run
test: add CI (#329)
This adds two CI runs: a quick one that happens for every pull
request and merge to master, and a longer one that happens daily.

This also adds a new installation group to setup.py because the
`easy` group isn't currently installable, and some of the dependencies
specified there need to be present for the tests to run.
2025-03-04 09:34:23 -08:00

28 lines
1.0 KiB
YAML

name: Test setup
runs:
using: composite
steps:
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install libjpeg-dev chromium-browser
shell: bash
- name: Set up rethinkdb
run: |
wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/rethinkdb-archive-keyrings.gpg
echo "deb [signed-by=/usr/share/keyrings/rethinkdb-archive-keyrings.gpg] https://download.rethinkdb.com/repository/ubuntu-$(lsb_release -cs) $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
sudo apt-get update
sudo apt-get install rethinkdb
sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sudo /etc/init.d/rethinkdb restart
shell: bash
- name: Install pip dependencies
run: |
pip install .[rethinkdb,warcprox,yt-dlp]
# setuptools required by rethinkdb==2.4.9
pip install pytest setuptools
shell: bash