export BaseSQLGenerator for being imported #574
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unittests | |
name: dtable-events test | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: apt install | |
run: | | |
sudo apt-get update --fix-missing || true | |
sudo apt-get install -y libevent-dev libcurl4-openssl-dev libglib2.0-dev | |
sudo apt-get install -y uuid-dev intltool libsqlite3-dev build-essential | |
sudo apt-get install -y libarchive-dev libtool libjansson-dev valac | |
sudo apt-get install -y libfuse-dev cmake re2c flex sqlite3 | |
sudo apt-get install -y libssl-dev libldap2-dev libonig-dev | |
sudo apt-get install -y libxml2 libxml2-dev | |
sudo apt-get install -y python3-dev libsasl2-dev gcc libjwt-dev | |
sudo apt-get install -y libmemcached11 libmemcached-dev | |
- name: clone and build | |
run: | | |
git clone --depth=1 --branch=11.0 https://github.com/haiwen/seafile-test-deploy /tmp/seafile-test-deploy | |
git clone https://github.com/haiwen/seafobj /tmp/seafobj | |
cd /tmp/seafile-test-deploy && git fetch origin 11.0:11.0 && git checkout 11.0 | |
./bootstrap.sh | |
- name: pip install | |
run: | | |
cd /tmp/seafobj && pip install -r requirements.txt && pip install pylibmc | |
cd $GITHUB_WORKSPACE && pip install -r test-requirements.txt | |
- name: test sql | |
run: | | |
cd $GITHUB_WORKSPACE | |
export CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data IS_PRO_VERSION=True | |
./dtable_events/tests/test.sh init && ./dtable_events/tests/test.sh test |