[pre-commit.ci] pre-commit autoupdate #331
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: | |
| - master | |
| pull_request: | |
| jobs: | |
| dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - run: sudo apt-get update && sudo apt-get install -y gettext | |
| - name: Install Python dependencies | |
| run: python -m pip install --upgrade pip build wheel twine readme-renderer | |
| - run: python -m build --sdist --wheel | |
| - run: python -m twine check dist/* | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| path: dist/* | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - run: sudo apt-get update && sudo apt-get install -y gettext python3-enchant | |
| - run: python -m pip install sphinxcontrib-spelling | |
| - run: python -m pip install -e '.[docs]' | |
| - run: python -m sphinx -W -b spelling docs docs/_build | |
| SQLite: | |
| needs: [dist, docs] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| django-version: | |
| - "4.2.0" | |
| - "5.1.0" | |
| - "5.2.0" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: sudo apt-get update && sudo apt-get install -y gettext | |
| - run: python -m pip install -e '.[test]' | |
| - run: python -m pip install Django~=${{ matrix.django-version }}.0 | |
| - run: python -m pytest | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: python-${{ matrix.python-version }} | |
| wagtail: | |
| needs: [dist, docs] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.x"] | |
| wagtail-version: | |
| - "6.3.0" | |
| - "7.0.0" | |
| - "7.1.0" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: sudo apt-get update && sudo apt-get install -y gettext | |
| - run: python -m pip install -e ".[test,wagtail]" | |
| - run: python -m pip install wagtail~=${{ matrix.wagtail-version }} | |
| - run: python -m pytest | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: ${{ matrix.extras }} | |
| PostgreSQL: | |
| needs: [dist, docs] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.x"] | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_USER: django | |
| POSTGRES_PASSWORD: django | |
| ports: | |
| - 5432/tcp | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v5 | |
| - run: sudo apt-get update && sudo apt-get install -y gettext | |
| - run: python -m pip install -e ".[test,postgres]" | |
| - run: psql template1 -c "CREATE EXTENSION citext;" | |
| env: | |
| PGHOST: localhost | |
| PGPORT: ${{ job.services.postgres.ports[5432] }} | |
| PGUSER: django | |
| PGPASSWORD: django | |
| - run: python -m pytest | |
| env: | |
| DB_PORT: ${{ job.services.postgres.ports[5432] }} | |
| DB: pg | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: ${{ matrix.extras }} |