Nightly Wagtail test #710
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
| # Test against the Wagtail main branch, nightly, as this is required by Wagtail Nest: | |
| # https://github.com/wagtail-nest | |
| name: Nightly Wagtail test | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| nightly-test: | |
| # Cannot check the existence of secrets, so limiting to repository name to prevent | |
| # all forks to run nightly. See: https://github.com/actions/runner/issues/520 | |
| if: ${{ github.repository == 'labd/wagtailstreamforms' }} | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:10.8 | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: | | |
| uv add "psycopg2>=2.6" | |
| uv pip install "git+https://github.com/wagtail/wagtail.git@main#egg=wagtail" | |
| uv pip install -e .[test] | |
| - name: Test | |
| id: test | |
| continue-on-error: true | |
| run: | | |
| ./manage.py test | |
| env: | |
| DATABASE_ENGINE: django.db.backends.postgresql | |
| DATABASE_HOST: localhost | |
| DATABASE_USER: postgres | |
| DATABASE_PASS: postgres | |
| DJANGO_SETTINGS_MODULE: tests.settings |