Skip to content

Make a release for Wagtail 3.0 #111

Make a release for Wagtail 3.0

Make a release for Wagtail 3.0 #111

Workflow file for this run

name: Wagtail Hallo CI
on:
push:
branches:
- main
- 'stable/**'
pull_request:
jobs:
check-client:
name: 🧑‍🚀 preflight (check client)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- id: npm-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('.nvmrc') }}-${{ hashFiles('**/package-lock.json') }}
- if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run preflight
check-server-black:
name: ⚫ Black (check server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Python black Lint
uses: psf/black@stable
check-server-flake8:
name: 🎱 flake8 (check server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Python flake8 Lint
uses: py-actions/[email protected]
test-sqlite:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10']
django: ['3.2', '4.0']
wagtail: ['2.16', '3.0', '4.0']
include:
- wagtail: '2.15'
django: '3.2'
python: '3.7'
- wagtail: '2.15'
django: '3.2'
python: '3.8'
- wagtail: '2.15'
django: '3.2'
python: '3.9'
- wagtail: '2.15'
django: '3.2'
python: '3.10'
- wagtail: '4.0'
django: '4.1'
python: '3.8'
- wagtail: '4.0'
django: '4.1'
python: '3.9'
- wagtail: '4.0'
django: '4.1'
python: '3.10'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: |
python -m pip install tox
- name: Test
run: |
tox
env:
TOXENV: python${{ matrix.python }}-django${{ matrix.django }}-wagtail${{ matrix.wagtail }}-sqlite
test-postgres:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10']
django: ['3.2', '4.0']
wagtail: ['2.16', '3.0', '4.0']
postgres: ['10.8']
include:
- wagtail: '2.15'
django: '3.2'
postgres: '10.8'
python: '3.7'
- wagtail: '2.15'
django: '3.2'
postgres: '10.8'
python: '3.8'
- wagtail: '2.15'
django: '3.2'
postgres: '10.8'
python: '3.9'
- wagtail: '2.15'
django: '3.2'
postgres: '10.8'
python: '3.10'
- wagtail: '4.0'
django: '4.1'
postgres: '10.8'
python: '3.8'
- wagtail: '4.0'
django: '4.1'
postgres: '10.8'
python: '3.9'
- wagtail: '4.0'
django: '4.1'
postgres: '10.8'
python: '3.10'
services:
postgres:
image: postgres:${{ matrix.postgres }}
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: |
python -m pip install tox
- name: Test
run: |
tox
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/wagtail_hallo
TOXENV: python${{ matrix.python }}-django${{ matrix.django }}-wagtail${{ matrix.wagtail }}-postgres