Skip to content

quicktill 23.8

quicktill 23.8 #220

Workflow file for this run

name: Quicktill
on: [push, pull_request]
jobs:
test:
name: Test quicktill
strategy:
matrix:
# Unfortunately the ubuntu-20.04 image already has
# postgresql-14 installed, not the native postgresql-12.
runs-on:
- 'ubuntu-20.04'
- 'ubuntu-22.04'
runs-on: ${{ matrix.runs-on }}
steps:
- name: Check out project
uses: actions/checkout@v3
- name: Update OS package list
run: |
sudo apt-get update
- name: Install OS-level dependencies
run: |
sudo apt-get install \
python3-pip \
python3-pytest \
python3-setuptools \
python3-cryptography \
python3-cups \
python3-dateutil \
python3-httplib2 \
python3-odf \
python3-psycopg2 \
python3-qrcode \
python3-reportlab \
python3-requests \
python3-requests-oauthlib \
python3-sqlalchemy \
python3-twython \
python3-yaml
- name: Install python dependencies
# We need the latest flake8, we can't use the one packaged in
# ubuntu-20.04
run: |
pip3 install flake8
- name: Lint with flake8
run: |
flake8 quicktill
- name: Start postgresql
run: |
sudo systemctl start postgresql
pg_lsclusters
- name: Configure postgresql
run: |
sudo -u postgres createuser --echo -d $(whoami)
- name: Test with pytest
run: |
pytest-3 quicktill
- name: Run from command line
run: |
createdb testdb
./runtill -d dbname=testdb syncdb
./runtill -d dbname=testdb dbsetup examples/dbsetup.toml
./runtill -d dbname=testdb adduser "Test User" Test builtin:alice
./runtill -d dbname=testdb listusers
./runtill -d dbname=testdb totals
./runtill -d dbname=testdb flushdb