add migration #10179
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
name: Test | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
app: | |
- peachjam | |
- africanlii | |
- lawlibrary | |
- liiweb | |
services: | |
postgres: | |
image: postgres:10 | |
env: | |
POSTGRES_PASSWORD: postgres | |
ports: | |
- 5432:5432 | |
## db health checks | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python Environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install -y libreoffice poppler-utils | |
python -m pip install --upgrade setuptools wheel | |
pip install . | |
pip install psycopg2-binary==2.9.3 | |
npm ci --no-audit --ignore-scripts --only=prod | |
npm i -g sass | |
- name: Lint and Run tests | |
env: | |
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/peach-jam" | |
run: | | |
pre-commit run --all-files | |
python manage.py test ${{ matrix.app }} --settings=${{ matrix.app }}.settings |