Skip to content

Support/wagtail 50

Support/wagtail 50 #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
experimental: [false]
include:
- python-version: "3.11"
toxenv: "notwagtailmain"
experimental: false
- python-version: "3.x"
toxenv: "wagtailmain"
experimental: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Start dummy client
uses: Eun/http-server-action@v1
with:
directory: ${{ github.workspace }}/wagtail_headless_preview/tests/client
port: 8020
no-cache: false
content-types: |
{
"html": "text/html",
"js": "text/javascript",
"json": "application/json",
"txt": "text/plain"
}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox tox-py
- name: Run tox targets for Python ${{ matrix.python-version }}
if: ${{ matrix.toxenv != 'wagtailmain' }}
continue-on-error: ${{ matrix.experimental }}
run: tox --py current
- name: Run ${{ matrix.toxenv }} tox targets
if: ${{ matrix.toxenv == 'wagtailmain' }}
continue-on-error: ${{ matrix.experimental }}
run: tox -e ${{ matrix.toxenv }}