Skip to content

Add the .readthedocs.yaml configuration file #2

Add the .readthedocs.yaml configuration file

Add the .readthedocs.yaml configuration file #2

Workflow file for this run

name: Test CI
on: [push, pull_request]
env:
DATABASE_NAME: dejacode
DATABASE_USER: dejacode
DATABASE_PASSWORD: dejacode
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8
jobs:
test:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: ${{ env.DATABASE_NAME }}
POSTGRES_USER: ${{ env.DATABASE_USER }}
POSTGRES_PASSWORD: ${{ env.DATABASE_PASSWORD }}
POSTGRES_INITDB_ARGS: ${{ env.POSTGRES_INITDB_ARGS }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install python-ldap OS dependencies
run: sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
- name: Install dependencies
run: make dev envfile
- name: Validate code format
run: make check
- name: Start Redis
uses: supercharge/[email protected]
# - name: Check Django deployment settings
# run: make check-deploy
- name: Build the documentation
run: make docs
- name: Run tests
run: bin/python manage.py test --verbosity=2 --noinput --parallel