Docs: Add note about object-level validation during partial updates #2841
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - uses: pre-commit/action@v3.0.1 | |
| tests: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_DB: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| strategy: | |
| matrix: | |
| python-version: | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| - '3.14' | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| cache: 'pip' | |
| - name: Upgrade packaging tools | |
| run: python -m pip install --upgrade pip setuptools virtualenv wheel | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade tox | |
| - name: Create unaccent extension | |
| run: PGPASSWORD=postgres psql -h localhost -U postgres -d postgres -c 'CREATE EXTENSION IF NOT EXISTS unaccent;' | |
| - name: Run tox targets for ${{ matrix.python-version }} | |
| run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d . | cut -f 1 -d '-') | |
| - name: Run extra tox targets | |
| if: ${{ matrix.python-version == '3.13' }} | |
| run: | | |
| tox -e base,dist,docs | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| env_vars: TOXENV,DJANGO | |
| test-docs: | |
| name: Test documentation links | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: pip install --group docs | |
| # Start mkdocs server and wait for it to be ready | |
| - run: mkdocs serve & | |
| - run: WAIT_TIME=0 && until nc -vzw 2 localhost 8000 || [ $WAIT_TIME -eq 5 ]; do sleep $(( WAIT_TIME++ )); done | |
| - run: if [ $WAIT_TIME == 5 ]; then echo cannot start mkdocs server on http://localhost:8000; exit 1; fi | |
| - name: Check links | |
| run: pylinkvalidate.py -P http://localhost:8000/ | |
| - run: echo "Done" |