Skip to content

Commit

Permalink
Add circleci matrix job to test older Wagtail versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Jul 29, 2021
1 parent 41ba852 commit 20d9852
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ orbs:

jobs:
build-and-test:
parameters:
wagtail-version:
default: "wagtail"
type: string
executor: python/default
steps:
- checkout
- restore_cache:
key: pip-{{ .Branch }}
- run: pip install wagtail
key: pip-{{ .Branch }}-<< parameters.wagtail-version >>
- run: pip install "<< parameters.wagtail-version >>"
- run: pip install -e .
- save_cache:
key: pip-{{ .Branch }}
key: pip-{{ .Branch }}-<< parameters.wagtail-version >>
paths:
- "~/.cache/pip"
- run:
Expand All @@ -35,7 +39,14 @@ jobs:
workflows:
main:
jobs:
- build-and-test
- build-and-test:
wagtail-version: "wagtail"
- build-and-test:
wagtail-version: "wagtail>=2.8,<2.9"
- build-and-test:
wagtail-version: "wagtail>=2.10,<2.11"
- build-and-test:
wagtail-version: "wagtail>=2.12,<2.13"
nightly:
jobs:
- nightly-wagtail-test
Expand Down

0 comments on commit 20d9852

Please sign in to comment.