Skip to content

Add backup script for postgres database #3

Add backup script for postgres database

Add backup script for postgres database #3

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: backend
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
python-version: [3.11]
steps:
- name: install just binary for running commands
uses: taiki-e/install-action@just
- uses: actions/checkout@v2
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install front end dependencies from front end directory
run: |
cd theme/static_src
npm i
cd ../../
- name: Install dependencies
run: |
python -m pip install pipenv
python -m pipenv install --dev
- name: Run tests
run: |
just test
env:
CI: true
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/backend"
VUE_APP_SUPPORT_EMAIL: "[email protected]"